Discover Packages
go.chromium.org/tast
src
go.chromium.org
tast
core
testutil
package
Version:
v0.0.0-...-b5d9cbe
Opens a new window with list of versions in this module.
Published: Apr 1, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package testutil provides support code for unit tests.
AppendToFile appends data to the file at path.
ReadFiles reads all regular files under dir and returns their
relative paths and contents.
TempDir creates a temporary directory prefixed by "tast_unittest_[TestName]." and returns its path.
If the directory cannot be created, a fatal error is reported to t.
WriteFiles creates and writes files (keys are relative filenames,
values are contents) within dir.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.