Documentation ¶
Index ¶
- type TestConfig
- func (t *TestConfig) Get(keys ...TestConfigKey) (val string)
- func (t *TestConfig) GetOrAbort(testing *testing.T, keys ...TestConfigKey) (val string)
- func (t *TestConfig) GetOrSkip(testing *testing.T, keys ...TestConfigKey) (val string)
- func (t *TestConfig) GetPagerDutyAPIKeyorAbort(testing *testing.T) (val string)
- func (t *TestConfig) GetTeamEmailAddress(testing *testing.T) (val string)
- func (t *TestConfig) GetTeamIDorAbort(testing *testing.T) (val string)
- func (t *TestConfig) GetUserEmailOrAbort(testing *testing.T) (val string)
- func (t *TestConfig) SkipUnlessAccTest(testing *testing.T)
- type TestConfigKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestConfig ¶
type TestConfig struct{}
func NewTestConfig ¶
func NewTestConfig() *TestConfig
func (*TestConfig) Get ¶
func (t *TestConfig) Get(keys ...TestConfigKey) (val string)
func (*TestConfig) GetOrAbort ¶
func (t *TestConfig) GetOrAbort(testing *testing.T, keys ...TestConfigKey) (val string)
func (*TestConfig) GetOrSkip ¶
func (t *TestConfig) GetOrSkip(testing *testing.T, keys ...TestConfigKey) (val string)
func (*TestConfig) GetPagerDutyAPIKeyorAbort ¶
func (t *TestConfig) GetPagerDutyAPIKeyorAbort(testing *testing.T) (val string)
func (*TestConfig) GetTeamEmailAddress ¶ added in v1.5.0
func (t *TestConfig) GetTeamEmailAddress(testing *testing.T) (val string)
func (*TestConfig) GetTeamIDorAbort ¶ added in v1.5.0
func (t *TestConfig) GetTeamIDorAbort(testing *testing.T) (val string)
func (*TestConfig) GetUserEmailOrAbort ¶ added in v1.2.0
func (t *TestConfig) GetUserEmailOrAbort(testing *testing.T) (val string)
func (*TestConfig) SkipUnlessAccTest ¶
func (t *TestConfig) SkipUnlessAccTest(testing *testing.T)
type TestConfigKey ¶
type TestConfigKey int
const ( TestConfigAccountAccessToken TestConfigKey = iota TestConfigProjectAccessToken TestConfigAcceptanceTestKey TestConfigPagerDutyAPIKey TestConfigUserEmailKey TestConfigTeamID TestConfigEmailAddress )
func (TestConfigKey) String ¶
func (k TestConfigKey) String() (name string)
Click to show internal directories.
Click to hide internal directories.