(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestContextGetOK(t *testing.T) { |
| 13 | c := NewContext(nil, nil) |
| 14 | |
| 15 | c.Set("key", int64(123)) |
| 16 | |
| 17 | v, err := ContextGet[int64](c, "key") |
| 18 | assert.NoError(t, err) |
| 19 | assert.Equal(t, int64(123), v) |
| 20 | } |
| 21 | |
| 22 | func TestContextGetNonExistentKey(t *testing.T) { |
| 23 | c := NewContext(nil, nil) |
nothing calls this directly
no test coverage detected
searching dependent graphs…