Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

TestOptions

Public Struct
std.Build.TestOptions
pub const TestOptions = struct

Fields

name: []const u8 = "test"
root_module: *Module
max_rss: u64 = 0
filters: []const []const u8 = &.{}
test_runner: ?Step.Compile.TestRunner = null
use_llvm: ?bool = null
use_lld: ?bool = null
zig_lib_dir: ?LazyPath = null
emit_object: bool = false

Emits an object file instead of a test binary. The object must be linked separately. Usually used in conjunction with a custom test_runner.

File

Build.zig:651
651
652
653
654
655
656
657
658
659
660
661
662
663
664
pub const TestOptions = struct {
    name: []const u8 = "test",
    root_module: *Module,
    max_rss: u64 = 0,
    filters: []const []const u8 = &.{},
    test_runner: ?Step.Compile.TestRunner = null,
    use_llvm: ?bool = null,
    use_lld: ?bool = null,
    zig_lib_dir: ?LazyPath = null,
    /// Emits an object file instead of a test binary.
    /// The object must be linked separately.
    /// Usually used in conjunction with a custom `test_runner`.
    emit_object: bool = false,
}