Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 831 for Initialize (0.66 sec)

  1. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/ExtraPropertiesExtensionsTest.kt

    import org.hamcrest.CoreMatchers.nullValue
    
    import org.hamcrest.MatcherAssert.assertThat
    import org.junit.Test
    
    
    class ExtraPropertiesExtensionsTest {
    
        @Test
        fun `can initialize extra property via delegate provider`() {
    
            val extra = mock<ExtraPropertiesExtension> {
                on { get("property") } doReturn 42
            }
    
            val property by extra(42)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. test/fixedbugs/issue30087.go

    	_ = 1, 2        // ERROR "assignment mismatch: 1 variable but 2 values|number of variables does not match|cannot assign"
    	c, d := 1       // ERROR "assignment mismatch: 2 variables but 1 value|wrong number of initializations|cannot initialize"
    	e, f := 1, 2, 3 // ERROR "assignment mismatch: 2 variables but 3 values|wrong number of initializations|cannot initialize"
    	_, _, _, _, _, _ = a, b, c, d, e, f
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 14:07:00 UTC 2023
    - 734 bytes
    - Viewed (0)
  3. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/CacheInitializationAction.java

        boolean requiresInitialization(FileLock fileLock);
    
        /**
         * Executes the action to initialize the cache. Called only if {@link #requiresInitialization(FileLock)} returns true, holding an exclusive lock.
         * The lock is not released between calling {@link #requiresInitialization(FileLock)} and this method.
         */
        void initialize(FileLock fileLock);
    
        CacheInitializationAction NO_INIT_REQUIRED = new CacheInitializationAction() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. testing/internal-testing/src/main/groovy/org/gradle/testfixtures/internal/NativeServicesTestFixture.java

        static NativeServices nativeServices;
        static boolean initialized;
    
        public static synchronized void initialize() {
            if (!initialized) {
                System.setProperty("org.gradle.native", "true");
                File nativeDir = getNativeServicesDir();
                NativeServices.initializeOnDaemon(nativeDir, NativeServicesMode.fromSystemProperties());
                initialized = true;
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/issue57434_test.go

    )
    
    var output int
    
    type Object struct {
    	Val int
    }
    
    func (o *Object) Initialize() *Object {
    	o.Val = 5
    	return o
    }
    
    func (o *Object) Update() *Object {
    	o.Val = o.Val + 1
    	return o
    }
    
    func TestAutotmpLoopDepth(t *testing.T) {
    	f := func() {
    		for i := 0; i < 10; i++ {
    			var obj Object
    			obj.Initialize().Update()
    			output = obj.Val
    		}
    	}
    	if n := testing.AllocsPerRun(10, f); n > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 20:24:18 UTC 2023
    - 619 bytes
    - Viewed (0)
  6. test/fixedbugs/issue59709.dir/cmem.go

    var G int
    
    type memResource struct {
    	x *int
    }
    
    func (m *memResource) initialize(*int) (res *int, err error) {
    	return nil, nil
    }
    
    func (m *memResource) teardown() {
    }
    
    func NewResource(cfg *aconfig.Config) *bresource.Resource[*int] {
    	res := &memResource{
    		x: &G,
    	}
    
    	return bresource.New("Mem", res.initialize, bresource.ResConfig{
    		// We always would want to retry the Memcache initialization.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 05 21:04:28 UTC 2023
    - 714 bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugins.go

    	}
    	if !found {
    		return nil, fmt.Errorf("unknown admission plugin: %s", name)
    	}
    
    	pluginInitializer.Initialize(plugin)
    	// ensure that plugins have been properly initialized
    	if err := ValidateInitialization(plugin); err != nil {
    		return nil, fmt.Errorf("failed to initialize admission plugin %q: %v", name, err)
    	}
    
    	return plugin, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/temp.go

    package walk
    
    import (
    	"cmd/compile/internal/base"
    	"cmd/compile/internal/ir"
    	"cmd/compile/internal/typecheck"
    	"cmd/compile/internal/types"
    )
    
    // initStackTemp appends statements to init to initialize the given
    // temporary variable to val, and then returns the expression &tmp.
    func initStackTemp(init *ir.Nodes, tmp *ir.Name, val ir.Node) *ir.AddrExpr {
    	if val != nil && !types.Identical(tmp.Type(), val.Type()) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. cluster/images/etcd/migrate/data_dir_test.go

    	}
    	exists, err := d.versionFile.Exists()
    	if err != nil {
    		t.Fatal(err)
    	}
    	if exists {
    		t.Errorf("Expected version file %s not to exist", d.versionFile.path)
    	}
    	err = d.Initialize(targetVersion)
    	if err != nil {
    		t.Fatalf("Failed initialize data directory %s: %v", d.path, err)
    	}
    	exists, err = d.versionFile.Exists()
    	if err != nil {
    		t.Fatal(err)
    	}
    	if exists {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 28 07:33:23 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/internal/transport/transport.go

    		ca:   flagset.String("tls_ca", "", "TLS CA certs file for fetching profile and symbols"),
    	}
    }
    
    // initialize uses the cert, key, and ca to initialize the certs
    // to use these when making requests.
    func (tr *transport) initialize() error {
    	var cert, key, ca string
    	if tr.cert != nil {
    		cert = *tr.cert
    	}
    	if tr.key != nil {
    		key = *tr.key
    	}
    	if tr.ca != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 3.8K bytes
    - Viewed (0)
Back to top