Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSecondWith (0.7 sec)

  1. src/log/slog/handler_test.go

    		h := &commonHandler{opts: HandlerOptions{Level: test.leveler}}
    		got := h.enabled(LevelInfo)
    		if got != test.want {
    			t.Errorf("%v: got %t, want %t", test.leveler, got, test.want)
    		}
    	}
    }
    
    func TestSecondWith(t *testing.T) {
    	// Verify that a second call to Logger.With does not corrupt
    	// the original.
    	var buf bytes.Buffer
    	h := NewTextHandler(&buf, &HandlerOptions{ReplaceAttr: removeKeys(TimeKey)})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 13:57:53 UTC 2023
    - 19.6K bytes
    - Viewed (0)
Back to top