Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCallDepth (0.21 sec)

  1. src/log/slog/logger_test.go

    	check(h.attrs, Int("a", 1), Int("b", 2))
    	check(attrsSlice(h.r), Int("c", 3))
    }
    
    func TestCallDepth(t *testing.T) {
    	ctx := context.Background()
    	h := &captureHandler{}
    	var startLine int
    
    	check := func(count int) {
    		t.Helper()
    		const wantFunc = "log/slog.TestCallDepth"
    		const wantFile = "logger_test.go"
    		wantLine := startLine + count*2
    		got := h.r.source()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 10 21:25:30 UTC 2023
    - 19.5K bytes
    - Viewed (0)
Back to top