(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestStrToTime(t *testing.T) { |
| 11 | ts := time.Now() |
| 12 | in := map[string]any{"Val": ts.Format(time.RFC3339Nano)} |
| 13 | out := struct{ Val time.Time }{} |
| 14 | err := WeakDecode(in, &out) |
| 15 | require.NoError(t, err) |
| 16 | require.True(t, ts.Equal(out.Val)) |
| 17 | } |
| 18 | |
| 19 | func TestStrToTimePtr(t *testing.T) { |
| 20 | in := map[string]any{} |
nothing calls this directly
no test coverage detected