package test

import "go.cryptoscope.co/margaret/multilog/test"

Index

Variables

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

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

func MultilogTestAddLogAndListed

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

func MultilogTestGetFreshLogCloseThenOpenAgain

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)

Bugs

☞ roaring does not implement reverse right now and just throws an error (https://github.com/cryptoscope/margaret/issues/7)

Source Files

main.go multilog.go multilog_live.go registry.go sink.go sublog.go

Directories

PathSynopsis
multilog/test/all
Version
v0.4.3 (latest)
Published
Feb 17, 2022
Platform
linux/amd64
Imports
16 packages
Last checked
11 hours ago

Tools for package owners.