- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestUnmarshalInvalidTimes (0.29 sec)
-
src/time/time_test.go
t.Errorf("%v json.Unmarshal error = %v, want nil", tt.time, err) } else if !equalTimeAndZone(jsonTime, tt.time) { t.Errorf("Unmarshaled time = %v, want %v", jsonTime, tt.time) } } } func TestUnmarshalInvalidTimes(t *testing.T) { tests := []struct { in string want string }{ {`{}`, "Time.UnmarshalJSON: input is not a JSON string"}, {`[]`, "Time.UnmarshalJSON: input is not a JSON string"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:13:47 UTC 2024 - 56.5K bytes - Viewed (0)