mocks

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Canvas

type Canvas struct {
	mock.Mock
}

Canvas is an autogenerated mock type for the Canvas type

func NewCanvas

func NewCanvas(t mockConstructorTestingTNewCanvas) *Canvas

NewCanvas creates a new instance of Canvas. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Canvas) FillScreen

func (_m *Canvas) FillScreen(c color.RGBA)

FillScreen provides a mock function with given fields: c

func (*Canvas) GetHeight

func (_m *Canvas) GetHeight() int

GetHeight provides a mock function with given fields:

func (*Canvas) GetUserInput

func (_m *Canvas) GetUserInput() models.UserInput

GetUserInput provides a mock function with given fields:

func (*Canvas) GetWidth

func (_m *Canvas) GetWidth() int

GetWidth provides a mock function with given fields:

func (*Canvas) SetCartesianPixel

func (_m *Canvas) SetCartesianPixel(x int, y int, c color.RGBA)

SetCartesianPixel provides a mock function with given fields: x, y, c

func (*Canvas) SetPixel

func (_m *Canvas) SetPixel(x int, y int, c color.RGBA)

SetPixel provides a mock function with given fields: x, y, c

type Turtle

type Turtle struct {
	mock.Mock
}

Turtle is an autogenerated mock type for the Turtle type

func NewTurtle

func NewTurtle(t mockConstructorTestingTNewTurtle) *Turtle

NewTurtle creates a new instance of Turtle. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Turtle) B

func (_m *Turtle) B(distance float64)

B provides a mock function with given fields: distance

func (*Turtle) Backward

func (_m *Turtle) Backward(distance float64)

Backward provides a mock function with given fields: distance

func (*Turtle) EnableCompassAngleMode

func (_m *Turtle) EnableCompassAngleMode(in bool)

EnableCompassAngleMode provides a mock function with given fields: in

func (*Turtle) F

func (_m *Turtle) F(distance float64)

F provides a mock function with given fields: distance

func (*Turtle) Forward

func (_m *Turtle) Forward(distance float64)

Forward provides a mock function with given fields: distance

func (*Turtle) GetAngle

func (_m *Turtle) GetAngle() float64

GetAngle provides a mock function with given fields:

func (*Turtle) GetPos

func (_m *Turtle) GetPos() (float64, float64)

GetPos provides a mock function with given fields:

func (*Turtle) GoTo

func (_m *Turtle) GoTo(x float64, y float64)

GoTo provides a mock function with given fields: x, y

func (*Turtle) L

func (_m *Turtle) L(angle float64)

L provides a mock function with given fields: angle

func (*Turtle) Left

func (_m *Turtle) Left(angle float64)

Left provides a mock function with given fields: angle

func (*Turtle) Off

func (_m *Turtle) Off()

Off provides a mock function with given fields:

func (*Turtle) On

func (_m *Turtle) On()

On provides a mock function with given fields:

func (*Turtle) PD

func (_m *Turtle) PD()

PD provides a mock function with given fields:

func (*Turtle) PU

func (_m *Turtle) PU()

PU provides a mock function with given fields:

func (*Turtle) PaintDot

func (_m *Turtle) PaintDot(size float64)

PaintDot provides a mock function with given fields: size

func (*Turtle) PanL

func (_m *Turtle) PanL(distance float64)

PanL provides a mock function with given fields: distance

func (*Turtle) PanLeftward

func (_m *Turtle) PanLeftward(distance float64)

PanLeftward provides a mock function with given fields: distance

func (*Turtle) PanR

func (_m *Turtle) PanR(distance float64)

PanR provides a mock function with given fields: distance

func (*Turtle) PanRightward

func (_m *Turtle) PanRightward(distance float64)

PanRightward provides a mock function with given fields: distance

func (*Turtle) PenColor

func (_m *Turtle) PenColor(c color.RGBA)

PenColor provides a mock function with given fields: c

func (*Turtle) PenDown

func (_m *Turtle) PenDown()

PenDown provides a mock function with given fields:

func (*Turtle) PenSize

func (_m *Turtle) PenSize(size float64)

PenSize provides a mock function with given fields: size

func (*Turtle) PenUp

func (_m *Turtle) PenUp()

PenUp provides a mock function with given fields:

func (*Turtle) PointToward

func (_m *Turtle) PointToward(x float64, y float64)

PointToward provides a mock function with given fields: x, y

func (*Turtle) R

func (_m *Turtle) R(angle float64)

R provides a mock function with given fields: angle

func (*Turtle) Right

func (_m *Turtle) Right(angle float64)

Right provides a mock function with given fields: angle

func (*Turtle) SetAngle

func (_m *Turtle) SetAngle(angle float64)

SetAngle provides a mock function with given fields: angle

func (*Turtle) SetDegreesMode

func (_m *Turtle) SetDegreesMode()

SetDegreesMode provides a mock function with given fields:

func (*Turtle) SetRadianMode

func (_m *Turtle) SetRadianMode()

SetRadianMode provides a mock function with given fields:

func (*Turtle) SetSpeed

func (_m *Turtle) SetSpeed(PixelsPerSecond float64)

SetSpeed provides a mock function with given fields: PixelsPerSecond

Jump to

Keyboard shortcuts

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