ormtest

package
v0.0.0-...-a315113 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package ormtest contains utilities for testing modules built with the ORM.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemoryBackend

func NewMemoryBackend() ormtable.Backend

NewMemoryBackend returns a new ORM memory backend which can be used for testing purposes independent of any storage layer.

Example:

backend := ormtest.NewMemoryBackend()
ctx := ormtable.WrapContextDefault()
...

Types

This section is empty.

Jump to

Keyboard shortcuts

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