Script, GH action to check that all go files compile, and any tests pass. (#16)

This commit is contained in:
Jeff Winkler
2025-11-15 13:47:49 -05:00
committed by GitHub
parent 762635d7d9
commit f7b5b24dd5
8 changed files with 160 additions and 150 deletions

6
via.go
View File

@@ -174,6 +174,11 @@ func (v *V) registerCtx(c *Context) {
}
v.contextRegistry[c.id] = c
v.logDebug(c, "new context added to registry")
v.summarize()
}
func (v *V) summarize() {
fmt.Println("Have", len(v.contextRegistry), "sessions")
}
func (v *V) unregisterCtx(id string) {
@@ -184,6 +189,7 @@ func (v *V) unregisterCtx(id string) {
}
v.logDebug(nil, "ctx '%s' removed from registry", id)
delete(v.contextRegistry, id)
v.summarize()
}
func (v *V) getCtx(id string) (*Context, error) {