Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 2,645 for ensure (0.26 sec)

  1. tests/test_tutorial/test_sql_databases/test_testing_databases_py310.py

            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
        from docs_src.sql_databases.sql_app_py310.tests import test_sql_app
    
        # Ensure import side effects are re-executed
        importlib.reload(test_sql_app)
        test_sql_app.test_create_user()
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 825 bytes
    - Viewed (0)
  2. cmd/os-reliable.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"fmt"
    	"os"
    	"path"
    )
    
    // Wrapper functions to os.RemoveAll, which calls reliableRemoveAll
    // this is to ensure that if there is a racy parent directory
    // create in between we can simply retry the operation.
    func removeAll(dirPath string) (err error) {
    	if dirPath == "" {
    		return errInvalidArgument
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Apr 22 17:49:30 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_sql_databases/test_testing_databases.py

            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
        from docs_src.sql_databases.sql_app.tests import test_sql_app
    
        # Ensure import side effects are re-executed
        importlib.reload(test_sql_app)
        test_sql_app.test_create_user()
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 788 bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/WaitAtEndOfBuildFixture.groovy

            """.stripIndent()
        }
    
        /**
         * Generates build logic to ensure builds last for a given minimum time.
         *
         * This is used to ensure that the lastModified() timestamps actually change in between builds.
         * If the build is very fast, the timestamp of the file will not change and the JDK file watch service won't see the change.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. src/runtime/metrics.go

    // are populated lazily by its ensure method.
    type statAggregate struct {
    	ensured   statDepSet
    	heapStats heapStatsAggregate
    	sysStats  sysStatsAggregate
    	cpuStats  cpuStatsAggregate
    	gcStats   gcStatsAggregate
    }
    
    // ensure populates statistics aggregates determined by deps if they
    // haven't yet been populated.
    func (a *statAggregate) ensure(deps *statDepSet) {
    	missing := deps.difference(a.ensured)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 26K bytes
    - Viewed (0)
  6. src/crypto/internal/edwards25519/scalar_alias_test.go

    			return false
    		}
    
    		// Test aliasing the argument and the receiver.
    		if out := f(&v1, &v1); out != &v1 || v1 != v || !isReduced(out.Bytes()) {
    			return false
    		}
    
    		// Ensure the arguments was not modified.
    		return x == x1
    	}
    
    	checkAliasingTwoArgs := func(f func(v, x, y *Scalar) *Scalar, v, x, y Scalar) bool {
    		x1, y1, v1 := x, y, Scalar{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. pkg/controller/storageversiongc/gc_controller_test.go

    		t.Fatalf("error deleting lease object: %v", err)
    	}
    
    	// add a delay to ensure controller had a chance to reconcile
    	time.Sleep(2 * time.Second)
    
    	storageVersion, err := clientset.InternalV1alpha1().StorageVersions().Get(context.Background(), "k8s.test.resources", metav1.GetOptions{})
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 12:19:43 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  8. test/fixedbugs/issue55889.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Prior to Go 1.18, ineffectual //go:linkname directives were treated
    // as noops. Ensure that modules that contain these directives (e.g.,
    // x/sys prior to go.dev/cl/274573) continue to compile.
    
    package p
    
    import _ "unsafe"
    
    //go:linkname nonexistent nonexistent
    
    //go:linkname constant constant
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 03 20:35:31 UTC 2022
    - 562 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/mod_list_replace_dir.txt

    # Test that "go list" succeeds when given a directory in a replacement
    # module within the module cache.
    # Verifies golang.org/issue/29548
    
    # Populate go.sum and download dependencies.
    go get
    
    # Ensure v1.5.2 is also in the cache so we can list it.
    go mod download rsc.io/quote@v1.5.2
    
    ! go list $GOPATH/pkg/mod/rsc.io/quote@v1.5.2
    stderr '^directory ..[/\\]pkg[/\\]mod[/\\]rsc.io[/\\]quote@v1.5.2 outside main module or its selected dependencies$'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 10 19:08:19 UTC 2022
    - 681 bytes
    - Viewed (0)
  10. test/fixedbugs/issue28688.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"fmt"
    )
    
    // When using soft-float, OMUL might be rewritten to function
    // call so we should ensure it was evaluated first. Stack frame
    // setup for "test" function call should happen after call to runtime.fmul32
    
    var x int32 = 1
    
    func main() {
    	var y float32 = 1.0
    	test(x, y*y)
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 16:14:24 UTC 2021
    - 622 bytes
    - Viewed (0)
Back to top