Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for testOk (0.12 sec)

  1. src/testing/fstest/testfs.go

    // The contents of fsys must not change concurrently with TestFS.
    //
    // If TestFS finds any misbehaviors, it returns either the first error or a
    // list of errors. Use [errors.Is] or [errors.As] to inspect.
    //
    // Typical usage inside a test is:
    //
    //	if err := fstest.TestFS(myFS, "file/that/should/be/present"); err != nil {
    //		t.Fatal(err)
    //	}
    func TestFS(fsys fs.FS, expected ...string) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  2. maven-model-builder/src/test/java/org/apache/maven/model/validation/DefaultModelValidatorTest.java

        }
    
        @Test
        void testBadDependencyScope() throws Exception {
            SimpleProblemCollector result = validate("bad-dependency-scope.xml");
    
            assertViolations(result, 0, 0, 2);
    
            assertTrue(result.getWarnings().get(0).contains("test:f"));
    
            assertTrue(result.getWarnings().get(1).contains("test:g"));
        }
    
        @Test
        void testBadDependencyManagementScope() throws Exception {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 13:13:07 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go

    			ok = false
    		}
    	}
    	return ok
    }
    
    func isTestingType(typ types.Type, testingType string) bool {
    	// No Unalias here: I doubt "go test" recognizes
    	// "type A = *testing.T; func Test(A) {}" as a test.
    	ptr, ok := typ.(*types.Pointer)
    	if !ok {
    		return false
    	}
    	return analysisutil.IsNamedType(ptr.Elem(), "testing", testingType)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  4. cmd/perf-tests.go

    Aditya Manthramurthy <******@****.***> 1716591923 -0700
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  5. pkg/test/framework/test.go

    	// RequiresSingleNetwork ensures that clusters are in the same network
    	//
    	// Deprecated: Tests should not make assumptions regarding number of networks.
    	RequiresSingleNetwork() Test
    	// TopLevel marks a test as a "top-level test" meaning a container test that has many subtests.
    	// Resources created at this level will be in-scope for dumping when any descendant test fails.
    	TopLevel() Test
    	// Run the test, supplied as a lambda.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/test.go

    // issue 8092
    
    func test8092(t *testing.T) {
    	tests := []struct {
    		s    string
    		a, b *C.char
    	}{
    		{"text", &C.text[0], C.ctext()},
    		{"data", &C.data[0], C.cdata()},
    	}
    	for _, test := range tests {
    		if test.a != test.b {
    			t.Errorf("%s: pointer mismatch: %v != %v", test.s, test.a, test.b)
    		}
    		if got := C.GoString(test.a); got != test.s {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  7. src/cmd/go/internal/load/test.go

    //   - pmain, the package main corresponding to the test binary (running tests in ptest and pxtest).
    //   - ptest, the package p compiled with added "package p" test files.
    //   - pxtest, the result of compiling any "package p_test" (external) test files.
    //
    // If the package has no "package p_test" test files, pxtest will be nil.
    // If the non-test compilation of package p can be reused
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm/src/main/java/org/gradle/api/internal/tasks/testing/detection/ForkedTestClasspathFactory.java

            boolean isModule
        ) {
            DeprecationLogger.deprecateIndirectUsage("The automatic loading of test framework implementation dependencies")
                .withAdvice("Declare the desired test framework directly on the test suite or explicitly declare the test framework implementation dependencies on the test's runtime classpath.")
                .willBeRemovedInGradle9()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  9. cluster/gce/config-test.sh

    ENABLE_VOLUME_SNAPSHOTS=${ENABLE_VOLUME_SNAPSHOTS:-true}
    
    # Optional: Enable legacy ABAC policy that makes all service accounts superusers.
    # Disabling this by default in tests ensures default RBAC policies are sufficient from 1.6+
    # Upgrade test jobs that go from a version < 1.6 to a version >= 1.6 should override this to be true.
    ENABLE_LEGACY_ABAC=${ENABLE_LEGACY_ABAC:-false} # true, false
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 17:20:24 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  10. src/cmd/go/script_test.go

    	"golang.org/x/telemetry/counter/countertest"
    )
    
    var testSum = flag.String("testsum", "", `may be tidy, listm, or listall. If set, TestScript generates a go.sum file at the beginning of each test and updates test files if they pass.`)
    
    // TestScript runs the tests in testdata/script/*.txt.
    func TestScript(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	testenv.SkipIfShortAndSlow(t)
    
    	srv, err := vcstest.NewServer()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top