Initial vibeproxy implementation
Self-contained HTTP/HTTPS/TCP/UDP reverse proxy manager written in Go, with SQLite storage, a Bootstrap 5 admin UI (Go templates, no JS framework), and a REST API under /api/v1. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QTXFrNP1imCW7jtfL5SZrw
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package web
|
||||
|
||||
import "testing"
|
||||
|
||||
// TestTemplatesParse ensures every embedded template parses successfully
|
||||
// (render.go's init() panics on parse failure, so a passing test here just
|
||||
// confirms the package loaded).
|
||||
func TestTemplatesParse(t *testing.T) {
|
||||
if templates == nil {
|
||||
t.Fatal("templates not initialized")
|
||||
}
|
||||
names := []string{
|
||||
"dashboard", "proxy_hosts", "proxy_host_form", "streams", "stream_form",
|
||||
"backends", "certificates", "access_lists", "access_list_form",
|
||||
"logs", "logs_audit", "settings", "api_tokens",
|
||||
}
|
||||
for _, n := range names {
|
||||
if templates.Lookup(n) == nil {
|
||||
t.Errorf("template %q not found", n)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user