{"modulePath":"github.com/SyntacticStructures/deployments","version":"v0.0.0-20191021193107-b206e69e67d4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package testing\n\nCopyright 2018 Northern.tech AS\n\n\tLicensed under the Apache License, Version 2.0 (the \"License\");\n\tyou may not use this file except in compliance with the License.\n\tYou may obtain a copy of the License at\n\n\t    http://www.apache.org/licenses/LICENSE-2.0\n\n\tUnless required by applicable law or agreed to in writing, software\n\tdistributed under the License is distributed on an \"AS IS\" BASIS,\n\tWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\tSee the License for the specific language governing permissions and\n\tlimitations under the License.\n\nCopyright 2017 Northern.tech AS\n\n\tLicensed under the Apache License, Version 2.0 (the \"License\");\n\tyou may not use this file except in compliance with the License.\n\tYou may obtain a copy of the License at\n\n\t    http://www.apache.org/licenses/LICENSE-2.0\n\n\tUnless required by applicable law or agreed to in writing, software\n\tdistributed under the License is distributed on an \"AS IS\" BASIS,\n\tWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\tSee the License for the specific language governing permissions and\n\tlimitations under the License.\n\nCopyright 2018 Northern.tech AS\n\n\tLicensed under the Apache License, Version 2.0 (the \"License\");\n\tyou may not use this file except in compliance with the License.\n\tYou may obtain a copy of the License at\n\n\t    http://www.apache.org/licenses/LICENSE-2.0\n\n\tUnless required by applicable law or agreed to in writing, software\n\tdistributed under the License is distributed on an \"AS IS\" BASIS,\n\tWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\tSee the License for the specific language governing permissions and\n\tlimitations under the License.\n\n## Functions\n\n```go\nfunc CheckRecordedResponse(t *testing.T, recorded *test.Recorded, params JSONResponseParams)\n```\n\n```go\nfunc ContextMatcher() interface{}\n```\nIsContext can be used as argument matcher for github.com/stretchr/testify/mock compatible mocks\n\n```go\nfunc CreateValidImageFile() *os.File\n```\n\n```go\nfunc ErrorToErrStruct(err error) interface{}\n```\n\n```go\nfunc MakeMultipartRequest(method string, urlStr string, contentType string, payload []Part) *http.Request\n```\nMakeMultipartRequest returns a http.Request.\n\n```go\nfunc RestError(status string) map[string]interface{}\n```\n\n```go\nfunc SetUpTestApi(route string, routeType RouterTypeHandler,\n\thandler func(w rest.ResponseWriter, r *rest.Request)) http.Handler\n```\n\n## Types\n\n```go\ntype JSONResponseParams struct {\n\tOutputStatus     int\n\tOutputBodyObject interface{}\n\tOutputHeaders    map[string]string\n}\n```\n\n```go\ntype Part struct {\n\tContentType string\n\tImageData   []byte\n\tFieldName   string\n\tFieldValue  string\n}\n```\n\n```go\ntype RouterTypeHandler func(pathExp string, handlerFunc rest.HandlerFunc) *rest.Route\n```\n\n","path":"github.com/SyntacticStructures/deployments/utils/testing","name":"testing","synopsis":"","isRedistributable":true}
