Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestGetSource (0.08 sec)

  1. 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)
  2. 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)
Back to top