-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Francis Bouvier <francis@lightpanda.io>
- Loading branch information
1 parent
6324fdb
commit beec41a
Showing
5 changed files
with
30 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,3 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- run: zig build test | ||
- run: zig build run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pub const Wrapper = @import("io.zig").Wrapper; | ||
pub const Client = @import("std/http/Client.zig"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const std = @import("std"); | ||
const builtin = @import("builtin"); | ||
|
||
pub const Blocking = @import("Blocking.zig").Blocking; | ||
pub const IO = @import("io.zig").Wrapper(Blocking); | ||
|
||
pub const tests = @import("tests.zig"); | ||
|
||
pub fn main() !void { | ||
std.testing.refAllDecls(tests); | ||
for (builtin.test_functions) |test_fn| { | ||
test_fn.func() catch |err| { | ||
if (err == error.SkipZigTest) continue; | ||
return err; | ||
}; | ||
std.debug.print("{s}\tOK\n", .{test_fn.name}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters