Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestBasicScopes (0.1 sec)

  1. pkg/log/scope_test.go

    	}
    	for _, tt := range cases {
    		t.Run(tt.expected, func(t *testing.T) {
    			lines := runTest(t, tt.log)
    			mustMatchLength(t, 1, lines)
    			mustRegexMatchString(t, lines[0], tt.expected)
    		})
    	}
    }
    
    func TestBasicScopes(t *testing.T) {
    	s := RegisterScope("testScope", "z")
    
    	cases := []struct {
    		f          func()
    		pat        string
    		json       bool
    		caller     bool
    		wantExit   bool
    		stackLevel Level
    	}{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 17:36:09 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top