BaseSetOf a set from zero or more inline string arguments. Channel names must be valid, else the function will panic, so this should only be called with hardcoded known-valid strings.
(tb testing.TB, names ...string)
| 20 | // Channel names must be valid, else the function will panic, so this should only be called |
| 21 | // with hardcoded known-valid strings. |
| 22 | func BaseSetOf(tb testing.TB, names ...string) base.Set { |
| 23 | set, err := SetFromArray(names, KeepStar) |
| 24 | if err != nil { |
| 25 | tb.Fatalf("channels.SetOf failed: %v", err) |
| 26 | } |
| 27 | return set |
| 28 | } |