elvish/pkg/eval/testexport_test.go
Qi Xiao fef5049716 pkg/eval: Simplify how exception tracebacks are written.
*Exception.Show used to work differently when the traceback contains one frame
vs more frames. Harmonize how they work, and consistent with how parse errors
and compilation errors are shown.
2024-01-16 12:50:59 +00:00

14 lines
300 B
Go

package eval
// Pointers to variables that can be mutated for testing.
var (
GetHome = &getHome
Getwd = &getwd
OSExit = &osExit
TimeAfter = &timeAfter
TimeNow = &timeNow
ExceptionCauseStartMarker = &exceptionCauseStartMarker
ExceptionCauseEndMarker = &exceptionCauseEndMarker
)