Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestRecordSource (0.13 sec)

  1. src/log/slog/record_test.go

    			t.Errorf("got %v, want %v", got, want)
    		}
    	}
    }
    
    func TestRecordSource(t *testing.T) {
    	// Zero call depth => empty *Source.
    	for _, test := range []struct {
    		depth            int
    		wantFunction     string
    		wantFile         string
    		wantLinePositive bool
    	}{
    		{0, "", "", false},
    		{-16, "", "", false},
    		{1, "log/slog.TestRecordSource", "record_test.go", true}, // 1: caller of NewRecord
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 15:10:55 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top