requireExpandWildCardChannel is a helper function to assert that a user's wildcard channel expansion produces the expected result.
(t *testing.T, user User, expectedChannels, channelsToExpand []string)
| 3009 | |
| 3010 | // requireExpandWildCardChannel is a helper function to assert that a user's wildcard channel expansion produces the expected result. |
| 3011 | func requireExpandWildCardChannel(t *testing.T, user User, expectedChannels, channelsToExpand []string) { |
| 3012 | expandedChannels, err := user.expandWildCardChannel(base.SetFromArray(channelsToExpand)) |
| 3013 | require.NoError(t, err) |
| 3014 | assert.Equal(t, base.SetFromArray(expectedChannels), expandedChannels, "Expected channels %v to expand to %v", expectedChannels, channelsToExpand) |
| 3015 | } |
no test coverage detected