about things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

testing#

zig build test compiles tests but may not run them if your build.zig doesn't wire it up correctly. to actually run tests:

zig test src/foo.zig              # runs tests in foo.zig and its imports
zig test src/foo.zig --test-filter "parse"  # only tests matching "parse"

the testing allocator catches leaks. if you use parseFromValueLeaky or similar "leaky" apis, wrap in an arena:

var arena = std.heap.ArenaAllocator.init(std.testing.allocator);
defer arena.deinit();
const result = try leakyFunction(arena.allocator(), input);