mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string) int

Types

type Mock

type Mock struct {
	Name       string `json:"name"`
	TargetType string `json:"targetType,omitempty"`
	File       string `json:"file"`
	Line       int    `json:"line"`
	Library    string `json:"library"`
	Stubbed    bool   `json:"stubbed"`
	Verified   bool   `json:"verified"`
	Interacted bool   `json:"interacted"`
}

type Report

type Report struct {
	TotalMocks int            `json:"totalMocks"`
	ByLibrary  map[string]int `json:"byLibrary"`
	Mocks      []Mock         `json:"mocks"`
	Unused     []Mock         `json:"unused"`
}

func Scan

func Scan(root string) (Report, error)

Jump to

Keyboard shortcuts

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