Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestBind (0.07 sec)

  1. pkg/log/scope_test.go

    	if z1 != z2 {
    		t.Error("Expecting the same scope objects, got different ones")
    	}
    }
    
    func TestFind(t *testing.T) {
    	if z := FindScope("TestFind"); z != nil {
    		t.Error("Found scope, but expected it wouldn't exist")
    	}
    
    	_ = RegisterScope("TestFind", "")
    
    	if z := FindScope("TestFind"); z == nil {
    		t.Error("Did not find scope, expected to find it")
    	}
    }
    
    func TestBadNames(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 17:36:09 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/regexp/find_test.go

    		ret[i] = make([]int, runLength)
    		copy(ret[i], x[j:])
    		j += runLength
    		if j > len(x) {
    			panic("invalid build entry")
    		}
    	}
    	return ret
    }
    
    // First the simple cases.
    
    func TestFind(t *testing.T) {
    	for _, test := range findTests {
    		re := MustCompile(test.pat)
    		if re.String() != test.pat {
    			t.Errorf("String() = `%s`; should be `%s`", re.String(), test.pat)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 11 15:28:50 UTC 2021
    - 16.3K bytes
    - Viewed (0)
Back to top