end2end

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

dalgo-end2end-tests

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

The tests include:

  • single record operations
    • Insert single record
    • Get by ID
    • Update by ID
    • Delete by ID
  • batch records operations
    • queries (e.g. SQL)
    • Get by IDs
    • Updating multiple records

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 GetStructFieldName added in v0.0.26

func GetStructFieldName(Struct interface{}, field interface{}) (name string)

func TestDalgoDB

func TestDalgoDB(t *testing.T, db dal.Database)

TestDalgoDB tests a dalgo DB implementation

Types

type TestData

type TestData struct {
	StringProp  string
	IntegerProp int
}

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"`
}

Jump to

Keyboard shortcuts

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