edv

package
v0.1.6-0...-5c25bcb Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockServerOperation

type MockServerOperation struct {
	T                              *testing.T
	DB                             map[string][]byte
	UseDB                          bool
	CreateDocumentReturnStatusCode int
	CreateDocumentReturnLocation   string
	CreateDocumentReturnBody       []byte
	UpdateDocumentReturnStatusCode int
	UpdateDocumentReturnBody       []byte
	ReadDocumentReturnStatusCode   int
	ReadDocumentReturnBody         []byte
	QueryVaultReturnStatusCode     int
	QueryVaultReturnBody           []byte
	DeleteDocumentReturnStatusCode int
	DeleteDocumentReturnBody       []byte
}

MockServerOperation represents a mocked EDV server that is useful for testing.

func (*MockServerOperation) StartNewMockEDVServer

func (o *MockServerOperation) StartNewMockEDVServer() *httptest.Server

StartNewMockEDVServer starts the MockServerOperation.

Jump to

Keyboard shortcuts

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