mocks

package
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDestineZipCodeRequestValidation = func(req *http.Request) bool {
	destineZipCode := req.URL.Query().Get("cepDestino")
	return len(destineZipCode) < 8
}

Functions

func BuildGenerateAccessTokenTestSever

func BuildGenerateAccessTokenTestSever(t *testing.T) *httptest.Server

func BuildTestHandleFunc

func BuildTestHandleFunc(
	shouldReturnError requestValidator,
	errorResponse []byte,
	successResponse []byte,
	successStatusCode int,
	errorStatusCode int,
	t *testing.T,
) http.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL