- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestGetSource (0.17 sec)
-
cmd/namespace-lock_test.go
// position will cause the line number to change and the test to FAIL // Tests getSource(). func TestGetSource(t *testing.T) { currentSource := func() string { return getSource(2) } gotSource := currentSource() // Hard coded line number, 35, in the "expectedSource" value expectedSource := "[namespace-lock_test.go:35:TestGetSource()]" if gotSource != expectedSource { t.Errorf("expected : %s, got : %s", expectedSource, gotSource) }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 3.1K bytes - Viewed (0) -
maven-builder-support/src/test/java/org/apache/maven/building/DefaultProblemTest.java
Exception e = new Exception(); problem = new DefaultProblem(null, null, null, -1, -1, e); assertSame(e, problem.getException()); } @Test void testGetSource() { DefaultProblem problem = new DefaultProblem(null, null, null, -1, -1, null); assertEquals("", problem.getSource()); problem = new DefaultProblem(null, null, "", -1, -1, null);
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Sat Apr 15 17:24:20 GMT 2023 - 4.9K bytes - Viewed (0)