mocks

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 4 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Canvas) ClearScreen

func (_m *Canvas) ClearScreen(c color.Color)

ClearScreen provides a mock function with given fields: c

func (*Canvas) CreateNewSprite

func (_m *Canvas) CreateNewSprite() turtlemodel.Sprite

CreateNewSprite provides a mock function with given fields:

func (*Canvas) Exit

func (_m *Canvas) Exit()

Exit provides a mock function with given fields:

func (*Canvas) Fill

func (_m *Canvas) Fill(x int, y int, c color.Color)

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

func (*Canvas) GetHeight

func (_m *Canvas) GetHeight() int

GetHeight provides a mock function with given fields:

func (*Canvas) GetScreenshot

func (_m *Canvas) GetScreenshot() image.Image

GetScreenshot 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) PressedUserInput

func (_m *Canvas) PressedUserInput() *turtlemodel.UserInput

PressedUserInput provides a mock function with given fields:

func (*Canvas) SetCartesianPixel

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

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

func (*Canvas) SetPixel

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

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

func (*Canvas) SubscribeToJustPressedUserInput

func (_m *Canvas) SubscribeToJustPressedUserInput() chan *turtlemodel.UserInput

SubscribeToJustPressedUserInput provides a mock function with given fields:

func (*Canvas) UnSubscribeToJustPressedUserInput

func (_m *Canvas) UnSubscribeToJustPressedUserInput(in chan *turtlemodel.UserInput)

UnSubscribeToJustPressedUserInput provides a mock function with given fields: in

type Sprite

type Sprite struct {
	mock.Mock
}

Sprite is an autogenerated mock type for the Sprite type

func NewSprite

func NewSprite(t interface {
	mock.TestingT
	Cleanup(func())
}) *Sprite

NewSprite creates a new instance of Sprite. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Sprite) Get added in v0.9.0

func (_m *Sprite) Get() turtlemodel.SpriteInfo

Get provides a mock function with given fields:

func (*Sprite) Set

func (_m *Sprite) Set(visible bool, cartX float64, cartY float64, radianAngle float64)

Set provides a mock function with given fields: visible, cartX, cartY, radianAngle

func (*Sprite) SetPosition

func (_m *Sprite) SetPosition(cartX float64, cartY float64)

SetPosition provides a mock function with given fields: cartX, cartY

func (*Sprite) SetRotation

func (_m *Sprite) SetRotation(radianAngle float64)

SetRotation provides a mock function with given fields: radianAngle

func (*Sprite) SetScale

func (_m *Sprite) SetScale(scale float64)

SetScale provides a mock function with given fields: scale

func (*Sprite) SetSpriteImage

func (_m *Sprite) SetSpriteImage(_a0 image.Image)

SetSpriteImage provides a mock function with given fields: _a0

func (*Sprite) SetSpriteImageArrow

func (_m *Sprite) SetSpriteImageArrow()

SetSpriteImageArrow provides a mock function with given fields:

func (*Sprite) SetSpriteImageTurtle

func (_m *Sprite) SetSpriteImageTurtle()

SetSpriteImageTurtle provides a mock function with given fields:

func (*Sprite) SetVisible

func (_m *Sprite) SetVisible(visible bool)

SetVisible provides a mock function with given fields: visible

type Turtle

type Turtle struct {
	mock.Mock
}

Turtle is an autogenerated mock type for the Turtle type

func NewTurtle

func NewTurtle(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Turtle) Angle

func (_m *Turtle) Angle(angle float64)

Angle provides a mock function with given fields: angle

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) Circle

func (_m *Turtle) Circle(radius float64, angleAmountToDraw float64, steps int)

Circle provides a mock function with given fields: radius, angleAmountToDraw, steps

func (*Turtle) Clone added in v0.9.0

func (_m *Turtle) Clone() turtlemodel.Turtle

Clone provides a mock function with given fields:

func (*Turtle) Color

func (_m *Turtle) Color(c color.Color)

Color provides a mock function with given fields: c

func (*Turtle) CompassMode

func (_m *Turtle) CompassMode()

CompassMode provides a mock function with given fields:

func (*Turtle) DegreesMode

func (_m *Turtle) DegreesMode()

DegreesMode provides a mock function with given fields:

func (*Turtle) Dot

func (_m *Turtle) Dot(size float64)

Dot provides a mock function with given fields: size

func (*Turtle) F

func (_m *Turtle) F(distance float64)

F provides a mock function with given fields: distance

func (*Turtle) Fill

func (_m *Turtle) Fill(c color.Color)

Fill provides a mock function with given fields: c

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) GetAngleMode

func (_m *Turtle) GetAngleMode() turtlemodel.AngleMode

GetAngleMode provides a mock function with given fields:

func (*Turtle) GetColor

func (_m *Turtle) GetColor() color.Color

GetColor 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) GetSize

func (_m *Turtle) GetSize() float64

GetSize provides a mock function with given fields:

func (*Turtle) GetSpeed

func (_m *Turtle) GetSpeed() float64

GetSpeed 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) HideTurtle

func (_m *Turtle) HideTurtle()

HideTurtle provides a mock function with given fields:

func (*Turtle) IsPenDown

func (_m *Turtle) IsPenDown() bool

IsPenDown provides a mock function with given fields:

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) 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) PenDown

func (_m *Turtle) PenDown()

PenDown provides a mock function with given fields:

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) RadiansMode

func (_m *Turtle) RadiansMode()

RadiansMode provides a mock function with given fields:

func (*Turtle) Right

func (_m *Turtle) Right(angle float64)

Right provides a mock function with given fields: angle

func (*Turtle) ShapeAsArrow

func (_m *Turtle) ShapeAsArrow()

ShapeAsArrow provides a mock function with given fields:

func (*Turtle) ShapeAsImage

func (_m *Turtle) ShapeAsImage(in image.Image)

ShapeAsImage provides a mock function with given fields: in

func (*Turtle) ShapeAsTurtle

func (_m *Turtle) ShapeAsTurtle()

ShapeAsTurtle provides a mock function with given fields:

func (*Turtle) ShapeScale

func (_m *Turtle) ShapeScale(scale float64)

ShapeScale provides a mock function with given fields: scale

func (*Turtle) ShowTurtle

func (_m *Turtle) ShowTurtle()

ShowTurtle provides a mock function with given fields:

func (*Turtle) Size

func (_m *Turtle) Size(size float64)

Size provides a mock function with given fields: size

func (*Turtle) Speed

func (_m *Turtle) Speed(PixelsPerSecond float64)

Speed 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