Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for create_node (0.42 sec)

  1. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/DefaultNativeExecutableBinarySpecTest.groovy

        def "has useful string representation"() {
            given:
            def executable = BaseComponentFixtures.createNode(NativeExecutableSpec, DefaultNativeExecutableSpec, new DefaultComponentSpecIdentifier("path", "name"))
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. pkg/scheduler/extender_test.go

    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    
    			cache := internalcache.New(ctx, time.Duration(0))
    			for _, name := range test.nodes {
    				cache.AddNode(logger, createNode(name))
    			}
    			fwk, err := tf.NewFramework(
    				ctx,
    				test.registerPlugins, "",
    				runtime.WithClientSet(client),
    				runtime.WithInformerFactory(informerFactory),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  3. fastapi/utils.py

        PydanticSchemaGenerationError,
        Undefined,
        UndefinedType,
        Validator,
        lenient_issubclass,
    )
    from fastapi.datastructures import DefaultPlaceholder, DefaultType
    from pydantic import BaseModel, create_model
    from pydantic.fields import FieldInfo
    from typing_extensions import Literal
    
    if TYPE_CHECKING:  # pragma: nocover
        from .routing import APIRoute
    
    # Cache for `create_cloned_field`
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. platforms/software/platform-base/src/test/groovy/org/gradle/platform/base/binary/BaseBinarySpecTest.groovy

            binary.namingScheme.description == "sample binary 'sampleBinary'"
        }
    
        def "qualifies project scoped named and display name using owners name"() {
            def component = BaseComponentFixtures.createNode(SampleComponent, MySampleComponent, new DefaultComponentSpecIdentifier("path", "sample"))
            def binary = create(SampleBinary, MySampleBinary, "unitTest", component)
    
            expect:
            binary.name == "unitTest"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. pkg/registry/registrytest/node.go

    }
    
    func (r *NodeRegistry) ListNodes(ctx context.Context, options *metainternalversion.ListOptions) (*api.NodeList, error) {
    	r.Lock()
    	defer r.Unlock()
    	return &r.Nodes, r.Err
    }
    
    func (r *NodeRegistry) CreateNode(ctx context.Context, node *api.Node) error {
    	r.Lock()
    	defer r.Unlock()
    	r.Node = node.Name
    	r.Nodes.Items = append(r.Nodes.Items, *node)
    	return r.Err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 23:13:50 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/DefaultSharedLibraryBinarySpecTest.groovy

            binary.tasks.add(linkTask)
    
            then:
            binary.tasks.link == linkTask
        }
    
        private def getSharedLibrary() {
            def library = BaseComponentFixtures.createNode(NativeLibrarySpec, DefaultNativeLibrarySpec, new DefaultComponentSpecIdentifier("path", "libName"));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/NativeBinarySpecTest.groovy

    class NativeBinarySpecTest extends Specification {
        def flavor1 = new DefaultFlavor("flavor1")
        def id = new DefaultComponentSpecIdentifier("project", "name")
        def component = BaseComponentFixtures.createNode(NativeLibrarySpec, TestNativeComponentSpec, id)
    
        def platform1 = Stub(NativePlatform) {
            getArchitecture() >> Architectures.forInput("i386")
        }
        def buildType1 = Stub(BuildType) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/DefaultStaticLibraryBinarySpecTest.groovy

    class DefaultStaticLibraryBinarySpecTest extends Specification {
        @Rule
        TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
        final library = BaseComponentFixtures.createNode(NativeLibrarySpec, DefaultNativeLibrarySpec, new DefaultComponentSpecIdentifier("path", "libName"))
        def namingScheme = DefaultBinaryNamingScheme.component("main").withBinaryType("staticLibrary")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. src/internal/profile/graph.go

    	if id < uint64(len(l.s)) {
    		return l.s[id]
    	} else {
    		return l.m[id]
    	}
    }
    
    // CreateNodes creates graph nodes for all locations in a profile. It
    // returns set of all nodes, plus a mapping of each location to the
    // set of corresponding nodes (one per location.Line).
    func CreateNodes(prof *Profile, o *Options) (Nodes, locationMap) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 20:59:15 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  10. src/syscall/syscall_windows.go

    		sa = makeInheritSa()
    	}
    	var createmode uint32
    	switch {
    	case mode&(O_CREAT|O_EXCL) == (O_CREAT | O_EXCL):
    		createmode = CREATE_NEW
    	case mode&(O_CREAT|O_TRUNC) == (O_CREAT | O_TRUNC):
    		createmode = CREATE_ALWAYS
    	case mode&O_CREAT == O_CREAT:
    		createmode = OPEN_ALWAYS
    	case mode&O_TRUNC == O_TRUNC:
    		createmode = TRUNCATE_EXISTING
    	default:
    		createmode = OPEN_EXISTING
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
Back to top