Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestValueTime (0.17 sec)

  1. src/log/slog/value_test.go

    	// We'll just check that this function name appears in it.
    	if got, want := gotErr.Error(), "TestLogValue"; !strings.Contains(got, want) {
    		t.Errorf("got %q, want substring %q", got, want)
    	}
    }
    
    func TestValueTime(t *testing.T) {
    	// Validate that all representations of times work correctly.
    	for _, tm := range []time.Time{
    		time.Time{},
    		time.Unix(0, 1e15), // UnixNanos is defined
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top