feat(platform): skip vehicle sections for unresolved lookup

This commit is contained in:
lingniu
2026-07-04 00:22:39 +08:00
parent f30eb4fbff
commit 3cb2d3479b
2 changed files with 25 additions and 0 deletions

View File

@@ -112,6 +112,9 @@ func TestHandlerVehicleDetailKeepsUnresolvedLookupOutOfVIN(t *testing.T) {
if body.Data.VIN == "64646848247" {
t.Fatalf("unresolved lookup should not be returned as top-level VIN: %s", rec.Body.String())
}
if len(body.Data.Sources) != 0 || len(body.Data.SourceStatus) != 0 || len(body.Data.Raw.Items) != 0 || len(body.Data.History.Items) != 0 || len(body.Data.Mileage.Items) != 0 {
t.Fatalf("unresolved lookup should not return vehicle data sections: %+v", body.Data)
}
}
func TestHandlerRealtimeLocations(t *testing.T) {