MCPcopy
hub / github.com/austingebauer/go-leetcode / TestLRUCache_2

Function TestLRUCache_2

lru_cache_146/solution_test.go:23–27  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21}
22
23func TestLRUCache_2(t *testing.T) {
24 cache := Constructor(1)
25 cache.Put(2, 1)
26 assert.Equal(t, 1, cache.Get(2))
27}
28
29/*
30["LRUCache","put","get","put","get","get"]

Callers

nothing calls this directly

Calls 3

PutMethod · 0.80
ConstructorFunction · 0.70
GetMethod · 0.45

Tested by

no test coverage detected