MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / TestEmptyStore

Function TestEmptyStore

pkg/frequencyplans/frequencyplans_test.go:71–81  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

69}
70
71func TestEmptyStore(t *testing.T) {
72 a := assertions.New(t)
73
74 store := frequencyplans.NewStore(fetch.NewMemFetcher(map[string][]byte{}))
75
76 _, err := store.GetAllIDs()
77 a.So(err, should.NotBeNil)
78
79 _, err = store.GetByID("EU_863_870")
80 a.So(err, should.NotBeNil)
81}
82
83func TestStore(t *testing.T) {
84 a := assertions.New(t)

Callers

nothing calls this directly

Calls 5

GetAllIDsMethod · 0.95
GetByIDMethod · 0.95
NewStoreFunction · 0.92
NewMemFetcherFunction · 0.92
NewMethod · 0.65

Tested by

no test coverage detected