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: 12 Imported by: 1

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 NewCodecFunc

type NewCodecFunc func(tipe interface{}) margaret.Codec

NewCodecFunc is a function that returns a codec

type NewLogFunc

type NewLogFunc func(string, interface{}) (margaret.Log, error)

Notes

Bugs

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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