end2end

package module
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 12 Imported by: 1

README

dalgo-end2end-tests

End to end tests for https://github.com/dal-go/dalgo

Documentation

Index

Constants

View Source
const (
	TestEntitiesNamePrefix = "DalgoE2E_"

	// E2ETestKind1 defines table or collection name for an entity to be stored in
	E2ETestKind1 = TestEntitiesNamePrefix + "E2ETest1"
	// E2ETestKind2 defines table or collection name for an entity to be stored in
	E2ETestKind2 = TestEntitiesNamePrefix + "E2ETest2"

	UserKind = TestEntitiesNamePrefix + "User"
)
View Source
const Version = "0.0.2"

Version indicates version of a package

Variables

This section is empty.

Functions

func TestDalgoDB

func TestDalgoDB(t *testing.T, db dal.DB, errQuerySupport error, eventuallyConsistent bool)

TestDalgoDB tests a dalgo DB implementation

Types

type TestData

type TestData struct {
	StringProp  string `json:"StringProp,omitempty" db:"StringProp"`
	IntegerProp int    `json:"IntegerProp" db:"IntegerProp"`
}

TestData describes a test entity to be stored in a DALgo database

func (TestData) Validate

func (v TestData) Validate() error

Validate returns error if not valid

type User

type User struct {
	Title string `json:"title,omitempty"`
	Email string `json:"email,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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