osmtest

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	// ScanError can be used to trigger an error.
	// If non-nil, Next() will return false and Err() will
	// return this error.
	ScanError error
	// contains filtered or unexported fields
}

Scanner implements the osm.Scanner interface with just a list of objects.

func NewScanner

func NewScanner(objects osm.Objects) *Scanner

NewScanner creates a new test scanner useful for test stubbing.

func (*Scanner) Close

func (s *Scanner) Close() error

Close is a stub for this test scanner.

func (*Scanner) Err

func (s *Scanner) Err() error

Err returns the scanner.ScanError.

func (*Scanner) Object

func (s *Scanner) Object() osm.Object

Object returns the current object.

func (*Scanner) Scan

func (s *Scanner) Scan() bool

Scan progresses the scanner to the next object.

Jump to

Keyboard shortcuts

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