Documentation ¶
Index ¶
- Constants
- func Assertnoerr(err error, t *testing.T)
- func Available(name string) bool
- func Buftary2strary(tptoken uint64, errstr *yottadb.BufferT, buftary *yottadb.BufferTArray, ...) (*[]string, error)
- func CheckErrorExpectYDB_ERR_INSUFFSUBS(errorcode int) bool
- func CheckErrorExpectYDB_ERR_NODEEND(errorcode int) bool
- func CheckErrorExpectYDB_ERR_STRUCTUNALLOCD(errorcode int) bool
- func Cmpstrary(astr, bstr *[]string) bool
- func Dbdeleteall(tptoken uint64, errstr *yottadb.BufferT, errors *int, t *testing.T)
- func GetHeapUsage(t *testing.T) int
- func GetSystemMemory(t *testing.T) int
- func MyGoCallBack(tptoken uint64, tpfnarg unsafe.Pointer) int
- func RunTimedTests() bool
- func SkipARMV7LTests(t *testing.T)
- func SkipCITests(t *testing.T)
- func SkipMemIntensiveTests(t *testing.T)
- func SkipTimedTests(t *testing.T)
- func TestTpRtn(tptoken uint64, errstr unsafe.Pointer, tpfnparm unsafe.Pointer) int
- func VerifyLockExists(lockvalidation []byte, errors *int, giveerror bool, t *testing.T) bool
Constants ¶
View Source
const AryDim uint32 = 10 // Dimension (capacity) of array of YDBBufferT structs we create here
View Source
const DebugFlag bool = false // Enable/Disable some simple debugging
View Source
const SubSiz uint32 = 15 // Max length of subscripts
View Source
const Timeout uint64 = 10 * uint64(time.Second) // 10 second timeout (in nanoseconds)
View Source
const ValSiz uint32 = 128 // Max size of values
View Source
const VarSiz uint32 = 15 // Max size of varname including '^'
Variables ¶
This section is empty.
Functions ¶
func Assertnoerr ¶
Define assert function to validate return codes and panic is assertion fails
func Buftary2strary ¶
func Buftary2strary(tptoken uint64, errstr *yottadb.BufferT, buftary *yottadb.BufferTArray, t *testing.T) (*[]string, error)
Routine to take a BufferTArray full of subscripts and turn it into a string array of the same subscripts
func CheckErrorExpectYDB_ERR_STRUCTUNALLOCD ¶ added in v1.2.0
func Cmpstrary ¶
Routine to compare two string arrays for equality. Returns true if they are the same (used length and strings)
func Dbdeleteall ¶
Routine to empty the database of everything currently defined in it
func GetHeapUsage ¶
func GetSystemMemory ¶
func RunTimedTests ¶
func RunTimedTests() bool
By default, we run timed tests; if we are running in a place
where we expect the system will be loaded, we might skip them
func SkipARMV7LTests ¶
func SkipCITests ¶
func SkipMemIntensiveTests ¶
func SkipTimedTests ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.