Function reset [src]
Implementation detail of file watching and forced rebuilds. Prepares the step for being re-evaluated.
Prototype
pub fn reset(step: *Step, gpa: Allocator) void
Parameters
step: *Step
gpa: Allocator
Source
pub fn reset(step: *Step, gpa: Allocator) void {
assert(step.state == .precheck_done);
step.result_error_msgs.clearRetainingCapacity();
step.result_stderr = "";
step.result_cached = false;
step.result_duration_ns = null;
step.result_peak_rss = 0;
step.test_results = .{};
step.result_error_bundle.deinit(gpa);
step.result_error_bundle = std.zig.ErrorBundle.empty;
}