INNER CODE UNIT · Go
TestConfig_Validate_WithInvalidData
samsara/samsara · clients/go/config_test.go:44
func TestConfig_Validate_WithInvalidData(t *testing.T) {
sets := []struct {
msg string
config Config
}{
{
"URL for Ingestion API should be specified.",
func() Config {
config := NewConfig()
config.Url = ""
return config
}(),
},
{
"Invalid interval time for Samsara client.",
func() Config {
config := NewConfig()
config.Url = "http://foo.bar"