Versions in this module Expand all Collapse all v1 v1.0.0 Feb 3, 2024 Changes in this version + var ContentTypeBmp = "image/bmp" + var ContentTypeCsv = "text/csv" + var ContentTypeDoc = "application/msword" + var ContentTypeForm = "application/x-www-form-urlencoded" + var ContentTypeGif = "image/gif" + var ContentTypeHtml = "text/html" + var ContentTypeHtml2 = "text/html; charset=utf-8" + var ContentTypeJpg = "image/jpeg" + var ContentTypeJson = "application/json" + var ContentTypePdf = "application/pdf" + var ContentTypePng = "image/png" + var ContentTypePpt = "application/vnd.ms-powerpoint" + var ContentTypeSvg = "image/svg+xml" + var ContentTypeText = "text/plain" + var ContentTypeTiff = "image/tiff" + var ContentTypeXls = "application/vnd.ms-excel" + var ContentTypeXml = "application/xml" + var ContentTypeXml2 = "application/xml; charset=utf-8" + var ContentTypeZip = "application/zip" + func GeneratePathParam(getParam map[string]string) string + type ApiTest struct + FailedTests int64 + PassedTests int64 + Result map[int64]ApiTestResult + Server *httptest.Server + ServerMux *http.ServeMux + Tests int64 + func InitApiTest() *ApiTest + func (h *ApiTest) CreateTest(httpReq ApiTestRequest) + func (h *ApiTest) DumpApiTestResult(needExit bool) + type ApiTestRequest struct + ApiMethod string + ApiUrl string + BearerToken interface{} + ContentType interface{} + Details string + ExpectedStatus interface{} + ReqBody interface{} + ReqParam interface{} + type ApiTestResult struct + TestDescription string + TestError interface{} + TestStatus bool + TestTime time.Duration Other modules containing this package github.com/Tvative/Go-Test/v2