test

package
v0.0.0-...-e1ef45a Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsString

func AsString(i interface{}) string

Types

type StringResponse

type StringResponse string

type Stub

type Stub struct {
	Planet  *model.Planet
	Planets []*model.Planet

	SwapiPlanets []swapi.Planet
	SwapiUpdates int

	Channel chan bool

	InsertResult mongo.InsertManyResult
	UpdateResult mongo.BulkWriteResult
	DeleteResult mongo.DeleteResult

	CalledWith map[string]interface{}
	RespBody   interface{}

	Error error
}

func (*Stub) DeletePlanets

func (s *Stub) DeletePlanets(planets []model.Planet) (*mongo.DeleteResult, error)

func (*Stub) GetAllPlanets

func (s *Stub) GetAllPlanets() ([]*model.Planet, error)

func (*Stub) GetPlanet

func (s *Stub) GetPlanet(filter interface{}, m *model.Planet) error

func (*Stub) InsertPlanets

func (s *Stub) InsertPlanets(planets []model.Planet) (*mongo.InsertManyResult, error)

func (*Stub) UpdateMovieRefs

func (s *Stub) UpdateMovieRefs(planets []swapi.Planet) (*mongo.BulkWriteResult, error)

func (*Stub) UpdatePlanetRefs

func (s *Stub) UpdatePlanetRefs() error

func (*Stub) UpdatePlanets

func (s *Stub) UpdatePlanets(planet []model.Planet) (*mongo.BulkWriteResult, error)

Jump to

Keyboard shortcuts

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