package package_mode

import "go.uber.org/mock/mockgen/internal/tests/package_mode"

Index

Types

type Animal

type Animal interface {
	Eater
	Breathe()
	Sleep(duration time.Duration)
}

type Car

type Car[FuelType fuel.Fuel] interface {
	Brand() string
	FuelTank() cars.FuelTank[FuelType]
	Refuel(fuel FuelType, volume int) error
}

type Counter

type Counter interface {
	int
}

type Driver

type Driver[FuelType fuel.Fuel, CarType Car[FuelType]] interface {
	Wroom() error
	Drive(car CarType)
}

type Earth

type Earth interface {
	AddHumans(HumansCount) []Human
	HumanPopulation() HumansCount
}

type Eater

type Eater interface {
	Eat(foods ...Food)
}

type Farmer

type Farmer interface {
	Human
	Driver[fuel.Diesel, cars.FordF150]
	Do(work *Work) error
	LivesInAVillage()
}

type Food

type Food interface {
	Calories() int
}

type Human

type Human = Primate

type HumansCount

type HumansCount = int

type Primate

type Primate Animal

type UrbanResident

type UrbanResident interface {
	Human
	Driver[fuel.Gasoline, cars.HyundaiSolaris]
	Do(work *Work) error
	LivesInACity()
}

type Work

type Work struct {
	Name string
}

Source Files

interfaces.go

Directories

PathSynopsis
mockgen/internal/tests/package_mode/cars
mockgen/internal/tests/package_mode/fuel
mockgen/internal/tests/package_mode/mockPackage mock is a generated GoMock package.
Version
v0.5.2 (latest)
Published
Apr 28, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
1 week ago

Tools for package owners.