test

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewLogFuncs map[string]NewLogFunc

Functions

func MultiLogTest

func MultiLogTest(f NewLogFunc) func(*testing.T)

func MultiLogTestSimple

func MultiLogTestSimple(f NewLogFunc) func(*testing.T)

func MultilogLiveQueryCheck added in v0.1.2

func MultilogLiveQueryCheck(f NewLogFunc) func(*testing.T)

func MultilogTestAddLogAndListed

func MultilogTestAddLogAndListed(f NewLogFunc) func(*testing.T)

func MultilogTestGetFreshLogCloseThenOpenAgain added in v0.4.3

func MultilogTestGetFreshLogCloseThenOpenAgain(f NewLogFunc) func(*testing.T)

cblgh: tests to make sure the local fork reproduction that was found when testing against peachcloud doesn't reappear

the scenario that detected it:

Start a fresh go-sbot (multilog)
Post some messages (entries in a sublog)
Stop it
Some time later: start it again
Post more messages (entries in a sublog)
Uh-oh the first new message seems to fork, using the previous-to-last message (instead of the last message) as it's previous reference, and with a seqno that is one less than it should be

func Register

func Register(name string, f NewLogFunc)

func RunMultiLogTests

func RunMultiLogTests(t *testing.T)

func RunSinkTests

func RunSinkTests(t *testing.T)

func RunSubLogTests

func RunSubLogTests(t *testing.T)

func SinkTest

func SinkTest(f NewLogFunc) func(*testing.T)

func SinkTestSimple

func SinkTestSimple(f NewLogFunc) func(*testing.T)

func SubLogTest

func SubLogTest(f NewLogFunc) func(*testing.T)

func SubLogTestGet

func SubLogTestGet(f NewLogFunc) func(*testing.T)

Types

type NewLogFunc

type NewLogFunc func(name string, tipe interface{}, testdir string) (multilog.MultiLog, string, error)

Notes

Bugs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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