Skip to content

Commit

Permalink
fixup sync_test_cases
Browse files Browse the repository at this point in the history
  • Loading branch information
micahkemp-splunk committed Jun 23, 2022
1 parent ef60820 commit c54de7b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/sync/sync_test_cases.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ func (tests syncResourceTestCases) test(t *testing.T) {
}
}

// composeResourceCheckFunc returns a resourceCheckFunc composed of the given checks.
func composeResourceCheckFunc(checks ...resourceCheckFunc) resourceCheckFunc {
return func(t *testing.T, name string, d *schema.ResourceData) {
for _, check := range checks {
check(t, name, d)
}
}
}

// checkResourceIdEquals returns a syncResourceTestFunc that checks the schema.ResourceData's
// Id value.
func checkResourceIdEquals(want string) resourceCheckFunc {
Expand Down

0 comments on commit c54de7b

Please sign in to comment.