MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / TestCharacterIndex_Remove

Function TestCharacterIndex_Remove

internal/users/charindex_test.go:58–67  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

56}
57
58func TestCharacterIndex_Remove(t *testing.T) {
59 ci := freshCharacterIndex()
60 ci.Add("Aldric", 10)
61 ci.Remove("Aldric")
62
63 _, found := ci.Find("Aldric")
64 if found {
65 t.Fatal("expected name to be absent after Remove")
66 }
67}
68
69func TestCharacterIndex_RemoveCaseInsensitive(t *testing.T) {
70 ci := freshCharacterIndex()

Callers

nothing calls this directly

Calls 4

freshCharacterIndexFunction · 0.85
FindMethod · 0.80
AddMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected