testing

package
v0.0.0-...-f8640d3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package testing provides a fake parser for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake[TResp any] struct {
	Datas  []string
	ParseF func(input string) (TResp, error)
}

Fake is a fake parser for testing.

func (*Fake[TResp]) Parse

func (f *Fake[TResp]) Parse(data string) (TResp, error)

Parse implements Parser interface.

Jump to

Keyboard shortcuts

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