handlers

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package handlers annotation: @Mock(name="HandlersMock", sub="pkg_mocks")

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoSomeAnother

func DoSomeAnother(response http.Response)

*

  • DoSomeAnother some doc
  • @tag <code>Markup<</code>
  • @param response documentation

func DoSomething

func DoSomething(r http.Request)

Testing package interface

Types

type CopySomeInternalHandler

type CopySomeInternalHandler interface {
	Handle(r http.Request) (http.Response, error)
	Proxy() SomeHandler
	SetProxy(SomeHandler) error
}

CopySomeInternalHandler test interface for mocking Annotations:

@Mock(name="OverrodeMock", sub="mocks_2")

type DockCommentSomeInternalHandler

type DockCommentSomeInternalHandler interface {
	Handle(r http.Request) (http.Response, error)
	Proxy() SomeHandler
	SetProxy(SomeHandler) error
}

DockCommentSomeInternalHandler *

  • test interface for mocking
  • Annotations:
  • @Mock(name="DockCommentSomeInternalHandler", sub="mocks_2")

type EmbeddedInterface

type EmbeddedInterface interface {
	CopySomeInternalHandler
	SomeAnotherHandler
}

EmbeddedInterface test interface embedding for mocking Annotations:

@Mock

type FunctionForTestingItsTool

type FunctionForTestingItsTool func(SomeInternalHandler, http.Response) http.Request

FunctionForTestingItsTool test interface for mocking Annotations:

@Mock(sub="mocks_2")

type InterfaceReference

type InterfaceReference SomeHandler

InterfaceReference test interface reference for mocking Annotations:

@Mock

type SomeAnotherHandler

type SomeAnotherHandler interface {
	Handle(r http.Request) (http.Response, error)
	Proxy() SomeHandler
	SetProxy(SomeHandler) error
}

SomeAnotherHandler test interface for mocking Annotations:

@Mock(name="OverrodeHandlerMockName")

type SomeHandler

type SomeHandler interface {
	Get(int) float64
	Set(float32) int64
}

SomeHandler test interface for mocking Annotations:

@Mock

type SomeInternalHandler

type SomeInternalHandler interface {
	Handle(r http.Request) (http.Response, error)
	Proxy() SomeHandler
	SetProxy(SomeHandler) error
}

SomeInternalHandler test interface for mocking Annotations:

@Mock(name="{{ .TypeName }}OverrodeMock", sub="mocks_2")

Directories

Path Synopsis
Code generated by Mock annotation processor.
Code generated by Mock annotation processor.
Code generated by Mock annotation processor.
Code generated by Mock annotation processor.
Code generated by Mock annotation processor.
Code generated by Mock annotation processor.
mocksfakes
Code generated by Mock annotation processor.
Code generated by Mock annotation processor.

Jump to

Keyboard shortcuts

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