Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 2,904 for Assert1 (0.65 sec)

  1. pkg/monitoring/monitortest/test.go

    			return fmt.Errorf("want %v samples, got %v", count, *d.SampleCount)
    		}
    		if *d.SampleSum != sum {
    			return fmt.Errorf("want %v sum, got %v", count, *d.SampleSum)
    		}
    		return nil
    	}
    }
    
    // Buckets asserts a distribution has the number of buckets
    func Buckets(count int) func(any) error {
    	return func(f any) error {
    		d := f.(*dto.Histogram)
    		if len(d.Bucket) != count {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 13 16:04:48 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/kubeconfig/kubeconfig_test.go

    				}
    
    				var spec *kubeConfigSpec
    				var ok bool
    
    				// assert the spec for the kubeConfigFile exists
    				if spec, ok = specs[assertion.kubeConfigFile]; !ok {
    					t.Errorf("getKubeConfigSpecs didn't create spec for %s ", assertion.kubeConfigFile)
    					return
    				}
    
    				// Assert clientName
    				if spec.ClientName != assertion.clientName {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformTestFixture.groovy

            taskTypeWithOutputDirectoryProperty(buildFile)
            taskTypeLogsArtifactCollectionDetails(buildFile)
        }
    
        /**
         * Asserts that exactly the given files where transformed by the 'simple' transforms below
         */
        void assertTransformed(String... fileNames) {
            assert result.output.findAll("processing \\[(.+)\\]").sort() == fileNames.collect { "processing [$it]" }.sort()
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 20 15:06:39 UTC 2023
    - 21.7K bytes
    - Viewed (0)
  4. pkg/test/util/assert/tracker.go

    	return &Tracker[T]{t: t}
    }
    
    // Record that an event occurred.
    func (t *Tracker[T]) Record(event T) {
    	t.mu.Lock()
    	defer t.mu.Unlock()
    	t.events = append(t.events, event)
    }
    
    // Empty asserts the tracker is empty
    func (t *Tracker[T]) Empty() {
    	t.t.Helper()
    	t.mu.Lock()
    	defer t.mu.Unlock()
    	if len(t.events) != 0 {
    		t.t.Fatalf("unexpected events: %v", t.events)
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/ivy/IvyFileModule.groovy

            assertPublished()
        }
    
        void assertPublished() {
            assert ivyFile.assertIsFile()
            assert parsedIvy.organisation == organisation
            assert parsedIvy.module == module
            assert parsedIvy.revision == revision
        }
    
        void assertPublishedAsJavaModule() {
            assertPublished()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/decl.go

    		for i := 0; i < base.NumMethods(); i++ {
    			m := base.Method(i)
    			assert(m.name != "_")
    			assert(mset.insert(m) == nil)
    		}
    	}
    
    	// add valid methods
    	for _, m := range methods {
    		// spec: "For a base type, the non-blank names of methods bound
    		// to it must be unique."
    		assert(m.name != "_")
    		if alt := mset.insert(m); alt != nil {
    			if alt.Pos().IsKnown() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/reflectdata/helpers.go

    	}
    
    	return false
    }
    
    // assertOp asserts that n is an op.
    func assertOp(n ir.Node, op ir.Op) {
    	base.AssertfAt(n.Op() == op, n.Pos(), "want %v, have %v", op, n)
    }
    
    // assertOp2 asserts that n is an op1 or op2.
    func assertOp2(n ir.Node, op1, op2 ir.Op) {
    	base.AssertfAt(n.Op() == op1 || n.Op() == op2, n.Pos(), "want %v or %v, have %v", op1, op2, n)
    }
    
    // kindRType asserts that typ has the given kind, and returns an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 04:50:32 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        }
    
        /**
         * Asserts that the expected completion time has passed (and not "too much" time beyond that).
         */
        void assertCompletionExpected() {
          assertAtLeastTimePassed(stopwatch, expectedCompletionWaitMillis);
          assertTimeNotPassed(stopwatch, expectedCompletionWaitMillis + LONG_DELAY_MS);
        }
    
        /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 16:06:39 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  9. src/go/types/decl.go

    		for i := 0; i < base.NumMethods(); i++ {
    			m := base.Method(i)
    			assert(m.name != "_")
    			assert(mset.insert(m) == nil)
    		}
    	}
    
    	// add valid methods
    	for _, m := range methods {
    		// spec: "For a base type, the non-blank names of methods bound
    		// to it must be unique."
    		assert(m.name != "_")
    		if alt := mset.insert(m); alt != nil {
    			if alt.Pos().IsValid() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  10. testing/internal-testing/src/main/groovy/org/gradle/integtests/fixtures/TestClassExecutionResult.java

    import org.hamcrest.Matcher;
    
    import java.util.List;
    
    public interface TestClassExecutionResult {
        /**
         * Asserts that the given tests (and only the given tests) were executed for the given test class.
         */
        TestClassExecutionResult assertTestsExecuted(String... testNames);
    
        /**
         * Asserts that the given tests (and only the given tests) were executed for the given test class.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top