tests

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JS

func JS(v any) string

func LoadFile

func LoadFile(t *testing.T, path string) string

func NotSimple

NotSimple correct comment

func NotSimple2

NotSimple2 correct comment

func Simple

Simple correct comment

func Simple2

Simple2 correct comment

func Simple3

Simple3 correct comment

func Simple4

func Simple4() func() int

Simple4 outer comment

Types

type TestError added in v0.13.0

type TestError struct {
	Message string `json:"message"`
}

func (TestError) Error added in v0.13.0

func (e TestError) Error() string

type TestErrorMap added in v0.13.0

type TestErrorMap map[string]string

func (TestErrorMap) Error added in v0.13.0

func (e TestErrorMap) Error() string

type TestErrorMapPtr added in v0.13.0

type TestErrorMapPtr map[string]string

func (*TestErrorMapPtr) Error added in v0.13.0

func (e *TestErrorMapPtr) Error() string

type TestErrorPtr added in v0.13.0

type TestErrorPtr struct {
	Message string `json:"message"`
}

func (*TestErrorPtr) Error added in v0.13.0

func (e *TestErrorPtr) Error() string

type TestInnerResponse

type TestInnerResponse struct {
	FooFoo int `json:"foo_foo"`
	BarBar int `json:"bar_bar"`
}

type TestRequest

type TestRequest struct {
	Foo string `json:"foob"`
	Bar string `json:"barb"`

	TestInnerResponse TestInnerResponse `json:"test_inner_responseb"`
}

type TestResponse

type TestResponse struct {
	Foo string `json:"foo"`
	Bar string `json:"bar"`

	TestInnerResponse TestInnerResponse `json:"test_inner_response"`
}

type TestStruct

type TestStruct struct {
	Foo string `json:"foo"`
	Bar int    `json:"bar"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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