oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package coordinator
2
3import (
4 "encoding/json"
5 "testing"
6)
7
8func TestEquipoStatusSchema(t *testing.T) {
9 for _, raw := range []string{`{}`, `{"person":"other"}`, `{"runner_id":"other"}`, `{"project_id":1}`} {
10 _, err := Validate(CoordinatorToolCall{Name: "equipo_status", RequestID: "status", Arguments: json.RawMessage(raw)})
11 if (err == nil) != (raw == `{}`) {
12 t.Fatalf("status scope: %s: %v", raw, err)
13 }
14 }
15}
16