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

Function TestAllSlots

internal/characters/worn_test.go:258–264  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

256}
257
258func TestAllSlots(t *testing.T) {
259 expected := []items.ItemType{
260 items.Weapon, items.Offhand, items.Head, items.Neck, items.Body,
261 items.Belt, items.Gloves, items.Ring, items.Legs, items.Feet,
262 }
263 assert.Equal(t, expected, AllSlots())
264}
265
266func TestWeaponSlots(t *testing.T) {
267 expected := []items.ItemType{items.Weapon, items.Offhand}

Callers

nothing calls this directly

Calls 1

AllSlotsFunction · 0.85

Tested by

no test coverage detected