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

Function TestFrequencyPlans

pkg/util/test/frequencyplans_test.go:26–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

24)
25
26func TestFrequencyPlans(t *testing.T) {
27 a := assertions.New(t)
28
29 fp := frequencyplans.NewStore(test.FrequencyPlansFetcher)
30
31 euFP, err := fp.GetByID(test.EUFrequencyPlanID)
32 a.So(err, should.BeNil)
33 a.So(euFP.BandID, should.Equal, "EU_863_870")
34
35 krFP, err := fp.GetByID(test.KRFrequencyPlanID)
36 a.So(err, should.BeNil)
37 a.So(krFP.UplinkChannels[0].Frequency, should.Equal, 922100000)
38
39 _, err = fp.GetByID(test.ExampleFrequencyPlanID)
40 a.So(err, should.BeNil)
41}

Callers

nothing calls this directly

Calls 3

GetByIDMethod · 0.95
NewStoreFunction · 0.92
NewMethod · 0.65

Tested by

no test coverage detected