Documentation ¶
Overview ¶
Package testhelper provides helper functions for testing implementations of slam libraries
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDeleteProcessedData ¶
func CheckDeleteProcessedData(t *testing.T, slamMode slam.Mode, dir string, prev int, deleteProcessedData, useLiveData bool) int
CheckDeleteProcessedData compares the number of files found in a specified data directory with the previous number found and uses the useLiveData and deleteProcessedData values to evaluate this comparison. It returns the number of files currently in the data directory for the specified config. Future invocations should pass in this value. This function should be passed 0 as a default prev argument in order to get the number of files currently in the directory.
func CreateTempFolderArchitecture ¶
CreateTempFolderArchitecture creates a new random temporary directory with the config, data, and map subdirectories needed to run the SLAM libraries.
func ResetFolder ¶
ResetFolder removes all content in path and creates a new directory in its place.
Types ¶
This section is empty.