{"modulePath":"github.com/raystack/meteor","version":"v0.14.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package utils\n\n## Variables\n\n```go\nvar Logger log.Logger = log.NewLogrus(log.LogrusWithWriter(io.Discard))\n```\nLogger set with writer\n\n## Functions\n\n```go\nfunc AssertEqualProto(t *testing.T, expected, actual proto.Message)\n```\n\n```go\nfunc AssertEqualProtos(t *testing.T, expected, actual any)\n```\n\n```go\nfunc AssertJSON(t *testing.T, expected, actual any, expectedDiff jsondiff.Difference)\n```\n\n```go\nfunc AssertJSONEq(t *testing.T, expected, actual any)\n```\n\n```go\nfunc AssertJSONFile(t *testing.T, expectedFilePath string, actual []*meteorv1beta1.Entity, expectedDiff jsondiff.Difference)\n```\n\n```go\nfunc AssertProtosWithJSONFile(t *testing.T, expectedFilePath string, actual []*meteorv1beta1.Entity)\n```\n\n```go\nfunc CheckDockerAvailability() bool\n```\nCheckDockerAvailability returns true if the Docker daemon is reachable.\n\n```go\nfunc CreateContainer(opts dockertest.RunOptions, retryOp func(r *dockertest.Resource) error) (func() error, error)\n```\nCreateContainer will create a docker container using the RunOptions given\n\n\"opts\" is the configuration for docker\n\n\"retryOp\" is an exponential backoff-retry, because the application in the container might not be ready to accept connections yet\n\n```go\nfunc LoadJSON(t *testing.T, filePath string, v any)\n```\n\n```go\nfunc Respond(t *testing.T, w http.ResponseWriter, status int, v any)\n```\n\n```go\nfunc SkipIfNoDocker(t *testing.T, available bool)\n```\nSkipIfNoDocker skips the test if Docker is not available.\n\n```go\nfunc SortedEntities(entities []*meteorv1beta1.Entity) []*meteorv1beta1.Entity\n```\n\n```go\nfunc ValueAsJSONReader(t *testing.T, v any) io.ReadCloser\n```\n\n## Types\n\n```go\ntype ArgMatcher interface{ Matches(any) bool }\n```\n\n```go\nfunc OfTypeContext() ArgMatcher\n```\n\n","path":"github.com/raystack/meteor/test/utils","name":"utils","synopsis":"","isRedistributable":true}
