- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for testGetSource (0.1 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) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 23 18:58:53 UTC 2021 - 3.1K bytes - Viewed (0) -
compat/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);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.9K bytes - Viewed (0) -
compat/maven-builder-support/src/test/java/org/apache/maven/building/DefaultProblemCollectorTest.java
assertEquals("", p2.getMessage()); assertEquals(42, p2.getLineNumber()); assertEquals(127, p2.getColumnNumber()); assertEquals(e2, p2.getException()); } @Test void testSetSource() { DefaultProblemCollector collector = new DefaultProblemCollector(null); collector.add(null, "PROBLEM1", -1, -1, null); collector.setSource("SOURCE_PROBLEM2");
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.7K bytes - Viewed (0)