test

package
v2.0.0-...-d31aa60 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewLogFuncs map[string]NewLogFunc

Functions

func LogTest

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

func LogTestConcurrent

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

func LogTestGet

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

func LogTestSimple

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

func Register

func Register(name string, f NewLogFunc)

func RunTests

func RunTests(t *testing.T)

Types

type Entry

type Entry int64

func (Entry) MarshalBinary

func (te Entry) MarshalBinary() ([]byte, error)

func (*Entry) UnmarshalBinary

func (te *Entry) UnmarshalBinary(data []byte) error

type Log

type Log = margaret.Log[*Entry]

type NewLogFunc

type NewLogFunc func(string) (Log, error)

Notes

Bugs

  • the iterators needs to be improved to handle these correctly (https://github.com/ssbc/margaret/issues/6)

    {
     name: "reverse and gte",
     values: []Entry{1, 2, 3, 4, 5},
     result: []Entry{5, 4, 3, 2},
     specs: []margaret.QueryOption{margaret.Reverse(true), margaret.Gte(int64(2))},
    },
    

Jump to

Keyboard shortcuts

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