Initial project import

This commit is contained in:
Agila Forge Importer committed 2026-07-13 15:20:32 +00:00
commit 23f2d29e32
11957 files changed
+1754577

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
# veb integration tests
These tests use `veb.Context` in memory. They do not start a `veb` server, bind
a port, or depend on HTTP client/server timing.
The coverage target is narrow: `x.async` can bound and propagate errors for a
synthetic veb handler step without becoming part of `veb`'s runtime or server
lifecycle.
@@ -0,0 +1,18 @@
import context
import time
import veb
import x.async as xasync
fn test_veb_context_response_inside_timeout() {
xasync.with_timeout(1 * time.second, fn (mut ctx context.Context) ! {
_ = ctx
mut web_ctx := veb.Context{}
_ := web_ctx.text('hello from veb')
if web_ctx.res.status_code != 200 {
return error('unexpected veb status')
}
if web_ctx.res.body != 'hello from veb' {
return error('unexpected veb body')
}
})!
}