Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestGetSource (0.05 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, 34, in the "expectedSource" value
    	expectedSource := "[namespace-lock_test.go:34:TestGetSource()]"
    	if gotSource != expectedSource {
    		t.Errorf("expected : %s, got : %s", expectedSource, gotSource)
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3K 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 Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java

            assertNotNull(map.get(FieldNames.LANGUAGES));
            assertNotNull(map.get(FieldNames.KINDS));
            assertNotNull(map.get(FieldNames.TIMESTAMP));
        }
    
        @Test
        public void testGetSource() {
            // Test getSource method
            String[] text = { "source", "test" };
            String[][] readings = { { "source" }, { "test" } };
            String[] fields = { "field1" };
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16.7K bytes
    - Viewed (0)
Back to top