(t *testing.T)
| 107 | } |
| 108 | |
| 109 | func TestUserDataSetAndRemove(t *testing.T) { |
| 110 | var ( |
| 111 | u userData |
| 112 | shortKey = "[]" |
| 113 | longKey = "[ ]" |
| 114 | ) |
| 115 | |
| 116 | u.Set(shortKey, "") |
| 117 | u.Set(longKey, "") |
| 118 | u.Remove(shortKey) |
| 119 | u.Set(shortKey, "") |
| 120 | testUserDataGet(t, &u, []byte(shortKey), "") |
| 121 | testUserDataGet(t, &u, []byte(longKey), "") |
| 122 | } |
| 123 | |
| 124 | func TestUserData_GC(t *testing.T) { |
| 125 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…