Documentation
¶
Overview ¶
Package hooktest runs the test binary itself as a hook command, so hook tests behave the same under sh on Unix and cmd.exe on Windows (2.0 F0).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
Command returns a hook command line that runs this test binary as the helper with args. Args must avoid ", $, % and backquotes: the line is parsed by sh on Unix and cmd.exe on Windows.
func RunIfHelper ¶
func RunIfHelper()
RunIfHelper must be the first call in TestMain. When Command started this process, it acts as the hook and exits.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.