feat(go): add post raw frame query

This commit is contained in:
lingniu
2026-07-03 14:54:52 +08:00
parent c0d3b41550
commit 28c81611a1
4 changed files with 169 additions and 4 deletions

View File

@@ -164,6 +164,16 @@ func TestRealtimeAPICachesBindingPlateResolver(t *testing.T) {
}
}
func TestRealtimeAPIExposesPostRawFrameQueryRoute(t *testing.T) {
source, err := os.ReadFile("main.go")
if err != nil {
t.Fatalf("read main.go: %v", err)
}
if !strings.Contains(string(source), `"/api/history/raw-frames/query"`) {
t.Fatalf("realtime api should expose POST raw frame query route")
}
}
type contextCheckingRealtimeUpdater struct {
ctxErr error
count int