fakeData

package
v0.0.0-...-4eea697 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Generators of fake byte arrays for test purpose

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cid

func Cid() *cid.Cid

func CompositionCreateCustomRequest

func CompositionCreateCustomRequest() []byte

func CompositionCreateRequest

func CompositionCreateRequest() []byte

func EhrCreateCustomRequest

func EhrCreateCustomRequest(subjectID, subjectNamespace string) []byte

func EhrCreateRequest

func EhrCreateRequest() []byte

func GetByteArray

func GetByteArray(lengthOfData int) ([]byte, error)

Generate random data array for testing

func GetByteArrays

func GetByteArrays(numOfData int, dataLength int) ([][]byte, error)

Generate array of random byte arrays for testing

func GetRandomLetter

func GetRandomLetter() string

nolint

func GetRandomStringWithLength

func GetRandomStringWithLength(lengthOfString int) string

Get random test string with length Stole from https://github.com/jaswdr/faker/blob/master/faker.go

func QueryExecRequest

func QueryExecRequest(ehrID string) []byte

func QueryExecResponse

func QueryExecResponse(query string) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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