package fastly import "testing" func TestClient_Splunks(t *testing.T) { } func TestClient_ListSplunks_validation(t *testing.T) { var err error _, err = testClient.ListSplunks(&ListSplunksInput{ Service: "", }) if err != ErrMissingService { t.Errorf("bad error: %s", err) } _, err = testClient.ListSplunks(&ListSplunksInput{ Service: "foo", Version: 0, }) if err != ErrMissingVersion { t.Errorf("bad error: %s", err) } } func TestClient_CreateSplunk_validation(t *testing.T) { var err error _, err = testClient.CreateSplunk(&CreateSplunkInput{ Service: "", }) if err != ErrMissingService { t.Errorf("bad error: %s", err) } _, err = testClient.CreateSplunk(&CreateSplunkInput{ Service: "foo", Version: 0, }) if err != ErrMissingVersion { t.Errorf("bad error: %s", err) } } func TestClient_GetSplunk_validation(t *testing.T) { var err error _, err = testClient.GetSplunk(&GetSplunkInput{ Service: "", }) if err != ErrMissingService { t.Errorf("bad error: %s", err) } _, err = testClient.GetSplunk(&GetSplunkInput{ Service: "foo", Version: 0, }) if err != ErrMissingVersion { t.Errorf("bad error: %s", err) } _, err = testClient.GetSplunk(&GetSplunkInput{ Service: "foo", Version: 1, Name: "", }) if err != ErrMissingName { t.Errorf("bad error: %s", err) } } func TestClient_UpdateSplunk_validation(t *testing.T) { var err error _, err = testClient.UpdateSplunk(&UpdateSplunkInput{ Service: "", }) if err != ErrMissingService { t.Errorf("bad error: %s", err) } _, err = testClient.UpdateSplunk(&UpdateSplunkInput{ Service: "foo", Version: 0, }) if err != ErrMissingVersion { t.Errorf("bad error: %s", err) } _, err = testClient.UpdateSplunk(&UpdateSplunkInput{ Service: "foo", Version: 1, Name: "", }) if err != ErrMissingName { t.Errorf("bad error: %s", err) } } func TestClient_DeleteSplunk_validation(t *testing.T) { var err error err = testClient.DeleteSplunk(&DeleteSplunkInput{ Service: "", }) if err != ErrMissingService { t.Errorf("bad error: %s", err) } err = testClient.DeleteSplunk(&DeleteSplunkInput{ Service: "foo", Version: 0, }) if err != ErrMissingVersion { t.Errorf("bad error: %s", err) } err = testClient.DeleteSplunk(&DeleteSplunkInput{ Service: "foo", Version: 1, Name: "", }) if err != ErrMissingName { t.Errorf("bad error: %s", err) } }