(t *testing.T)
| 1264 | } |
| 1265 | |
| 1266 | func TestCacheSerialization(t *testing.T) { |
| 1267 | tc := New(DefaultExpiration, 0) |
| 1268 | testFillAndSerialize(t, tc) |
| 1269 | |
| 1270 | // Check if gob.Register behaves properly even after multiple gob.Register |
| 1271 | // on c.Items (many of which will be the same type) |
| 1272 | testFillAndSerialize(t, tc) |
| 1273 | } |
| 1274 | |
| 1275 | func testFillAndSerialize(t *testing.T, tc *Cache) { |
| 1276 | tc.Set("a", "a", DefaultExpiration) |
nothing calls this directly
no test coverage detected