mock

package module
v0.0.0-...-ac132f2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

README

mock

Usage

go test -overlay <(go run github.com/lufia/mock/cmd/mock@latest)

Limitation

  • cyclic import
  • go:linkname

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get[F any](f, dflt F) F

func Set

func Set[F any](f, m F)

Types

type Scope

type Scope struct {
	// contains filtered or unexported fields
}

func CurrentScope

func CurrentScope() *Scope

func (*Scope) Delete

func (s *Scope) Delete()

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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