testhelper

package
v0.2.33 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

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

func CreateTempFolderArchitecture(logger golog.Logger) (string, error)

CreateTempFolderArchitecture creates a new random temporary directory with the config, data, and map subdirectories needed to run the SLAM libraries.

func ResetFolder

func ResetFolder(path string) error

ResetFolder removes all content in path and creates a new directory in its place.

Types

This section is empty.

Jump to

Keyboard shortcuts

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