(t *testing.T)
| 25 | ) |
| 26 | |
| 27 | func TestDefinitions(t *testing.T) { |
| 28 | t.Parallel() |
| 29 | a := assertions.New(t) |
| 30 | testEvent := events.Define("test", "Test Event", events.WithVisibility(ttnpb.Right_RIGHT_ALL)) |
| 31 | evt := testEvent.New(test.Context()) |
| 32 | a.So(evt.Name(), should.Equal, "test") |
| 33 | a.So(evt.Visibility().Rights, should.Contain, ttnpb.Right_RIGHT_ALL) |
| 34 | } |
nothing calls this directly
no test coverage detected