package
0.0.0-20240528011301-b51a646c7c86
Repository: https://github.com/pingcap/failpoint.git
Documentation: pkg.go.dev
# Functions
NewRestorer returns a non-nil restorer which is used to clean the workspace of the specified path.
NewRewriter returns a non-nil rewriter which is used to rewrite the specified path.
# Constants
No description provided by the author
# Structs
Restorer represents a manager to restore currentFile tree which has been modified by `failpoint-ctl enable`, e.g:
// ├── foo
// │ ├── foo.go
// │ └── foo.go__failpoint_stash__
// ├── bar
// │ ├── bar.go
// │ └── bar.go__failpoint_stash__
// └── foobar
// ├── foobar.go
// └── foobar.go__failpoint_stash__
// Which will be restored as below:
// ├── foo
// │ └── foo.go <- foo.go__failpoint_stash__
// ├── bar
// │ └── bar.go <- bar.go__failpoint_stash__
// └── foobar
// └── foobar.go <- foobar.go__failpoint_stash__
*/.
Rewriter represents a rewriting tool for converting the failpoint marker functions to corresponding statements in Golang.