package package_mode
import "go.uber.org/mock/mockgen/internal/tests/package_mode"
Index ¶
- type Animal
- type Car
- type Counter
- type Driver
- type Earth
- type Eater
- type Farmer
- type Food
- type Human
- type HumansCount
- type Primate
- type UrbanResident
- type Work
Types ¶
type Animal ¶
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 ¶
Path | Synopsis |
---|---|
mockgen/internal/tests/package_mode/cars | |
mockgen/internal/tests/package_mode/fuel | |
mockgen/internal/tests/package_mode/mock | Package 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.