package core:testing
⌘K
Ctrl+K
or
/
Index
Types (4)
Constants (0)
This section is empty.
Variables (0)
This section is empty.
Procedure Groups (0)
This section is empty.
Types
Internal_Test ¶
Internal_Test :: struct { pkg: string, name: string, p: Test_Signature, }
IMPORTANT NOTE: Compiler requires this layout
T ¶
T :: struct { error_count: int, w: io.Stream, cleanups: [dynamic]Internal_Cleanup, _fail_now: proc() -> !, }
Related Procedures With Parameters
Constants
This section is empty.
Variables
This section is empty.
Procedures
cleanup ¶
cleanup registers a procedure and user_data, which will be called when the test, and all its subtests, complete cleanup procedures will be called in LIFO (last added, first called) order.
error ¶
error :: proc(t: ^T, .. args: ..any, loc := #caller_location) {…}
expect_value ¶
expect_value :: proc(t: ^T, value, expected: $T, loc := #caller_location) -> bool {…}
fail ¶
fail :: proc(t: ^T, loc := #caller_location) {…}
fail_now ¶
fail_now :: proc(t: ^T, msg: string = "", loc := #caller_location) {…}
log ¶
log :: proc(t: ^T, .. args: ..any, loc := #caller_location) {…}
set_fail_timeout ¶
set_fail_timeout :: proc(t: ^T, duration: time.Duration, loc := #caller_location) {…}
Procedure Groups
This section is empty.
Source Files
- runner.odin
- testing.odin
- (hidden platform specific files)
Generation Information
Generated with odin version dev-2024-04 (vendor "odin") Windows_amd64 @ 2024-04-26 21:08:59.114102900 +0000 UTC