- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 3,743 for AssertJ (0.16 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
src/internal/types/testdata/check/literals.go
assert(0o_0 == 0) assert(0o_1234 == 01234) assert(0o0123_4567 == 01234567) assert(0O_0 == 0) assert(0O_1234 == 01234) assert(0O0123_4567 == 01234567) // binaries assert(0b0 == 0) assert(0b1011 == 0xb) assert(0b00101101 == 0x2d) assert(0B0 == 0) assert(0B1011 == 0xb) assert(0B00101101 == 0x2d) assert(0b_0 == 0) assert(0b10_11 == 0xb) assert(0b_0010_1101 == 0x2d)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 02:58:32 UTC 2022 - 2.4K bytes - Viewed (0) -
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) -
test/switch.go
assert(false, "2") case 3: assert(false, "3") case 4: assert(false, "4") case 5: assert(true, "5") case 6: assert(false, "6") case 7: assert(false, "7") case 8: assert(false, "8") case 9: assert(false, "9") default: assert(false, "default") } switch i5 { case 0, 1, 2, 3, 4: assert(false, "4") case 5: assert(true, "5") case 6, 7, 8, 9: assert(false, "9")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 19 23:30:49 UTC 2022 - 6.5K bytes - Viewed (0) -
tests/test_dependency_contextmanager.py
assert data["context_b"] == "started b" assert data["context_a"] == "started a" assert state["context_b"] == "finished b with a: started a" assert state["context_a"] == "finished a" def test_context_b_raise(): with pytest.raises(OtherDependencyError): client.get("/context_b_raise") assert state["context_b"] == "finished b with a: started a"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 11.6K bytes - Viewed (0)