package test

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

Index

Variables

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)

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))}, },

Source Files

codec.go concurrent.go get.go main.go registry.go simple.go

Directories

PathSynopsis
test/all
Version
v0.4.3 (latest)
Published
Feb 17, 2022
Platform
linux/amd64
Imports
12 packages
Last checked
1 hour ago

Tools for package owners.