Skip to content

Commit 43924e1

Browse files
claudeHuggeK
andcommitted
fix(roofmodel): the derive searches where the picker searched
Reported live from a 522 m2 barn at an unsaved pin: 'building ... was not found near this site'. Two causes, both fixed: the derive now sends the picker's own (possibly dragged, unsaved) coordinates instead of silently using the stored site, and its re-find of the picked footprint reaches as far as the picker's 150 m search did rather than the 40 m LiDAR radius. The LiDAR tile lookup centres on the picked building, not the pin. The module also accepts --footprint-json, a hand-drawn [lon, lat] ring that clips exactly like a picked building - the UI for it rides the drawing PR above this one. Verified live at the reported site: the exact failing pick now derives 2 arrays from 2 roof planes out of the 2019-04-04 scan. Co-authored-by: HuggeK <[email protected]>
1 parent 249411b commit 43924e1

12 files changed

Lines changed: 332 additions & 48 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"ftw": patch
3+
---
4+
5+
Deriving a picked building no longer fails with "not found near this site"
6+
in the two ways it could. The derive now searches where the picker searched:
7+
the same (possibly dragged, unsaved) map coordinates are sent with the
8+
request instead of silently using the stored site. And the derive's re-find
9+
of the picked footprint now reaches as far as the picker's own search did —
10+
it used to re-search with the 40 m LiDAR radius, so anything the 150 m picker
11+
had found beyond that reach vanished on derive. The LiDAR tile lookup also
12+
centres on the picked building rather than the pin. Verified live on the
13+
reported case: a 522 m² barn picked via an unsaved pin now derives 2 arrays
14+
from 2 roof planes.

‎go/internal/api/api.go‎

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2471,22 +2471,37 @@ func (s *Server) handleRoofModelDerive(w http.ResponseWriter, r *http.Request) {
24712471
return
24722472
}
24732473
lat, lon, haveSite := s.siteLocation()
2474-
if !haveSite {
2475-
writeJSON(w, 400, map[string]any{"error": "site latitude/longitude is not configured"})
2476-
return
2477-
}
24782474
// Optional: which footprint to clip the LiDAR to. An absent or empty body
2479-
// keeps the old behaviour of segmenting the whole search radius.
2475+
// keeps the old behaviour of segmenting the whole search radius. The
2476+
// coordinates mirror the buildings endpoint: the map lets you drag the
2477+
// pin before saving, and the derive must search where the picker
2478+
// searched, or the picked id is "not found near this site".
24802479
var body struct {
2481-
BuildingID string `json:"building_id"`
2480+
BuildingID string `json:"building_id"`
2481+
Latitude *float64 `json:"latitude"`
2482+
Longitude *float64 `json:"longitude"`
2483+
Footprint [][]float64 `json:"footprint"`
24822484
}
24832485
if r.Body != nil {
24842486
_ = json.NewDecoder(io.LimitReader(r.Body, 1<<16)).Decode(&body)
24852487
}
2488+
if body.Latitude != nil && body.Longitude != nil {
2489+
lat, lon, haveSite = *body.Latitude, *body.Longitude, true
2490+
}
2491+
if !haveSite {
2492+
writeJSON(w, 400, map[string]any{"error": "site latitude/longitude is not configured"})
2493+
return
2494+
}
2495+
// A hand-drawn footprint replaces the picked building where the catalog
2496+
// has no building dataset. Shape errors are the operator's to fix.
2497+
if n := len(body.Footprint); n > 0 && n < 3 {
2498+
writeJSON(w, 400, map[string]any{"error": "a drawn footprint needs at least three [lon, lat] corners"})
2499+
return
2500+
}
24862501

24872502
// A derive downloads and segments LiDAR tiles; the service time-boxes it,
24882503
// but the request should also die with the client rather than outliving it.
2489-
model, err := s.deps.RoofModel.Derive(r.Context(), lat, lon, body.BuildingID)
2504+
model, err := s.deps.RoofModel.Derive(r.Context(), lat, lon, body.BuildingID, body.Footprint)
24902505
if err != nil {
24912506
writeJSON(w, roofModelErrorStatus(err), map[string]any{"error": err.Error()})
24922507
return

‎go/internal/api/api_roofmodel_test.go‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,46 @@ func TestRoofModelBuildingsAcceptsAnExplicitCoordinate(t *testing.T) {
123123
}
124124
}
125125

126+
// The derive must search where the picker searched. The picker honours the
127+
// dragged, unsaved pin; if the derive silently used the stored site instead,
128+
// every pick made after moving the pin would die with "not found near this
129+
// site".
130+
func TestRoofModelDeriveAcceptsAnExplicitCoordinate(t *testing.T) {
131+
deps := depsAt(59.33, 18.07)
132+
deps.RoofModel = roofmodel.FromConfig(&config.RoofModel{
133+
Enabled: true, Command: "definitely-not-a-real-command",
134+
StacUsername: "u", StacPassword: "p",
135+
})
136+
srv := New(deps)
137+
138+
// Berlin is outside Lantmateriet coverage; if the body coordinates were
139+
// ignored the stored Stockholm ones would be used and this would not 400.
140+
req := httptest.NewRequest(http.MethodPost, "/api/roofmodel/derive",
141+
strings.NewReader(`{"building_id":"b1","latitude":52.52,"longitude":13.40}`))
142+
req.Header.Set("Content-Type", "application/json")
143+
rr := httptest.NewRecorder()
144+
srv.Handler().ServeHTTP(rr, req)
145+
if rr.Code != 400 {
146+
t.Fatalf("status = %d, want 400 for a site outside Sweden (body %s)", rr.Code, rr.Body.String())
147+
}
148+
149+
// Without coordinates in the body the stored site still serves.
150+
req = httptest.NewRequest(http.MethodPost, "/api/roofmodel/derive",
151+
strings.NewReader(`{"building_id":"b1"}`))
152+
req.Header.Set("Content-Type", "application/json")
153+
rr = httptest.NewRecorder()
154+
srv.Handler().ServeHTTP(rr, req)
155+
var body map[string]any
156+
_ = json.Unmarshal(rr.Body.Bytes(), &body)
157+
msg, _ := body["error"].(string)
158+
if msg == "" {
159+
t.Fatal("want the spawn to fail, since the command does not exist")
160+
}
161+
if strings.Contains(msg, "not in Sweden") {
162+
t.Errorf("the stored Stockholm site was not used: %v", msg)
163+
}
164+
}
165+
126166
// The catalog password is the operator's credential. Status may be reported;
127167
// the secret itself must never appear in a response. This test deliberately
128168
// stores it under the legacy geotorget_token key: a config written before the

‎go/internal/roofmodel/roofmodel.go‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func packingFactorFrom(cfg *config.RoofModel) float64 {
203203
// so a second building sharing the ridge orientation lands inside the first
204204
// one's inlier band however far away it is and steals its returns.
205205
func (s *Service) Buildings(ctx context.Context, lat, lon float64) (*BuildingList, error) {
206-
out, err := s.run(ctx, lat, lon, "buildings", "")
206+
out, err := s.run(ctx, lat, lon, "buildings", "", nil)
207207
if err != nil {
208208
return nil, err
209209
}
@@ -223,12 +223,15 @@ func (s *Service) Buildings(ctx context.Context, lat, lon float64) (*BuildingLis
223223
// buildingID is optional; pass one from Buildings to clip the LiDAR to that
224224
// footprint before segmenting, which is what makes the derived tilt and azimuth
225225
// belong to the operator's own roof rather than to whatever else stood in range.
226+
// footprint is the hand-drawn alternative — a [lon, lat] ring traced on the
227+
// map, for catalogs that publish no building dataset to pick from. It wins
228+
// over buildingID.
226229
//
227230
// Coverage and credentials are checked before spawning anything: a site outside
228231
// Sweden can never succeed, and a missing credential fails the same way every
229232
// time, so neither is worth an interpreter start and a network round trip.
230-
func (s *Service) Derive(ctx context.Context, lat, lon float64, buildingID string) (*Model, error) {
231-
out, err := s.run(ctx, lat, lon, "derive", buildingID)
233+
func (s *Service) Derive(ctx context.Context, lat, lon float64, buildingID string, footprint [][]float64) (*Model, error) {
234+
out, err := s.run(ctx, lat, lon, "derive", buildingID, footprint)
232235
if err != nil {
233236
return nil, err
234237
}
@@ -246,7 +249,7 @@ func (s *Service) Derive(ctx context.Context, lat, lon float64, buildingID strin
246249
}
247250

248251
// run spawns the module and returns its stdout.
249-
func (s *Service) run(ctx context.Context, lat, lon float64, mode, buildingID string) ([]byte, error) {
252+
func (s *Service) run(ctx context.Context, lat, lon float64, mode, buildingID string, footprint [][]float64) ([]byte, error) {
250253
cfg := s.config()
251254
if cfg == nil || !cfg.Enabled {
252255
return nil, ErrDisabled
@@ -278,6 +281,11 @@ func (s *Service) run(ctx context.Context, lat, lon float64, mode, buildingID st
278281
if buildingID != "" {
279282
args = append(args, "--building-id", buildingID)
280283
}
284+
if len(footprint) > 0 {
285+
// Marshalling [][]float64 cannot fail; the module validates the shape.
286+
fp, _ := json.Marshal(footprint)
287+
args = append(args, "--footprint-json", string(fp))
288+
}
281289
if u := cfg.StacUser(); u != "" {
282290
args = append(args, "--username", u)
283291
}

‎go/internal/roofmodel/roofmodel_test.go‎

Lines changed: 49 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ func TestDisabledWhenAbsentOrOff(t *testing.T) {
109109
if off.Enabled() {
110110
t.Error("disabled config must report disabled")
111111
}
112-
if _, err := off.Derive(context.Background(), stockholmLat, stockholmLon, ""); !errors.Is(err, ErrDisabled) {
112+
if _, err := off.Derive(context.Background(), stockholmLat, stockholmLon, "", nil); !errors.Is(err, ErrDisabled) {
113113
t.Errorf("err = %v, want ErrDisabled", err)
114114
}
115115
// A nil *Service must be safe to call, not a panic.
116116
var s *Service
117117
if s.Enabled() {
118118
t.Error("nil service must report disabled")
119119
}
120-
if _, err := s.Derive(context.Background(), stockholmLat, stockholmLon, ""); !errors.Is(err, ErrDisabled) {
120+
if _, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "", nil); !errors.Is(err, ErrDisabled) {
121121
t.Errorf("err = %v, want ErrDisabled", err)
122122
}
123123
s.Reconfigure(&config.RoofModel{Enabled: true}) // no-op, not a panic
@@ -130,7 +130,7 @@ func TestDisabledWhenAbsentOrOff(t *testing.T) {
130130
// enablement, in both directions.
131131
func TestReconfigureAppliesCredentialsWithoutRestart(t *testing.T) {
132132
s := svc(t, &config.RoofModel{Enabled: true})
133-
if _, err := s.Derive(context.Background(), stockholmLat, stockholmLon, ""); !errors.Is(err, ErrNoCredentials) {
133+
if _, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "", nil); !errors.Is(err, ErrNoCredentials) {
134134
t.Fatalf("before reconfigure: err = %v, want ErrNoCredentials", err)
135135
}
136136

@@ -139,12 +139,12 @@ func TestReconfigureAppliesCredentialsWithoutRestart(t *testing.T) {
139139
Command: stubModule(t, "stdout", minimalModel),
140140
StacUsername: "operator", StacPassword: "secret",
141141
})
142-
if _, err := s.Derive(context.Background(), stockholmLat, stockholmLon, ""); err != nil {
142+
if _, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "", nil); err != nil {
143143
t.Fatalf("after reconfigure with credentials: %v", err)
144144
}
145145

146146
s.Reconfigure(&config.RoofModel{Enabled: false})
147-
if _, err := s.Derive(context.Background(), stockholmLat, stockholmLon, ""); !errors.Is(err, ErrDisabled) {
147+
if _, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "", nil); !errors.Is(err, ErrDisabled) {
148148
t.Fatalf("after disabling: err = %v, want ErrDisabled", err)
149149
}
150150
}
@@ -166,7 +166,7 @@ func TestDeriveRefusesOutsideSwedenWithoutSpawning(t *testing.T) {
166166
{"New York", 40.71, -74.01},
167167
{"north of Sweden", 71.0, 20.0},
168168
} {
169-
_, err := s.Derive(context.Background(), c.lat, c.lon, "")
169+
_, err := s.Derive(context.Background(), c.lat, c.lon, "", nil)
170170
if !errors.Is(err, ErrOutsideCoverage) {
171171
t.Errorf("%s: err = %v, want ErrOutsideCoverage", c.name, err)
172172
}
@@ -188,7 +188,7 @@ func TestSwedishBoxAdmitsSomeNonSwedishPointsByDesign(t *testing.T) {
188188
Command: "definitely-not-a-real-command",
189189
StacUsername: "u", StacPassword: "t",
190190
})
191-
_, err := s.Derive(context.Background(), 59.91, 10.75, "") // Oslo
191+
_, err := s.Derive(context.Background(), 59.91, 10.75, "", nil) // Oslo
192192
if errors.Is(err, ErrOutsideCoverage) {
193193
t.Skip("box now excludes Oslo; verify it still admits Strömstad and Haparanda")
194194
}
@@ -214,7 +214,7 @@ func TestSwedishBoxCoversBorderTowns(t *testing.T) {
214214
{"Karesuando (far north)", 68.44, 22.49},
215215
{"Smygehuk (far south)", 55.34, 13.36},
216216
} {
217-
_, err := s.Derive(context.Background(), c.lat, c.lon, "")
217+
_, err := s.Derive(context.Background(), c.lat, c.lon, "", nil)
218218
if errors.Is(err, ErrOutsideCoverage) {
219219
t.Errorf("%s: must not be excluded", c.name)
220220
}
@@ -230,7 +230,7 @@ func TestDeriveRequiresCredentials(t *testing.T) {
230230
{"neither", "", ""},
231231
} {
232232
s := svc(t, &config.RoofModel{Enabled: true, Command: "no-such-command", StacUsername: c.user, StacPassword: c.token})
233-
_, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "")
233+
_, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "", nil)
234234
if !errors.Is(err, ErrNoCredentials) {
235235
t.Errorf("%s: err = %v, want ErrNoCredentials", c.name, err)
236236
}
@@ -246,7 +246,7 @@ func TestDeriveParsesAModel(t *testing.T) {
246246
cmd := stubModule(t, "stdout", doc)
247247
s := svc(t, &config.RoofModel{Enabled: true, Command: cmd, StacUsername: "u", StacPassword: "t"})
248248

249-
m, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "")
249+
m, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "", nil)
250250
if err != nil {
251251
t.Fatal(err)
252252
}
@@ -273,7 +273,7 @@ func TestDeriveCarriesHowTheLidarWasFetched(t *testing.T) {
273273
cmd := stubModule(t, "stdout", doc)
274274
s := svc(t, &config.RoofModel{Enabled: true, Command: cmd, StacUsername: "u", StacPassword: "t"})
275275

276-
m, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "b-1")
276+
m, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "b-1", nil)
277277
if err != nil {
278278
t.Fatal(err)
279279
}
@@ -297,7 +297,7 @@ func TestDerivePassesTheSiteAndCredentials(t *testing.T) {
297297
RadiusM: 25,
298298
})
299299

300-
if _, err := s.Derive(context.Background(), stockholmLat, stockholmLon, ""); err != nil {
300+
if _, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "", nil); err != nil {
301301
t.Fatal(err)
302302
}
303303

@@ -344,7 +344,7 @@ func TestDerivePassesThePickedBuilding(t *testing.T) {
344344
StacUsername: "u", StacPassword: "t",
345345
})
346346

347-
if _, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "bldg-42"); err != nil {
347+
if _, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "bldg-42", nil); err != nil {
348348
t.Fatal(err)
349349
}
350350

@@ -357,6 +357,31 @@ func TestDerivePassesThePickedBuilding(t *testing.T) {
357357
}
358358
}
359359

360+
// A hand-drawn footprint is the picker for catalogs with no building dataset;
361+
// it must reach the module as the exact [lon, lat] ring that was traced.
362+
func TestDerivePassesTheDrawnFootprint(t *testing.T) {
363+
dir := t.TempDir()
364+
record := dir + string(os.PathSeparator) + "invocation.json"
365+
cmd := stubModule(t, "record", record)
366+
s := svc(t, &config.RoofModel{
367+
Enabled: true, Command: cmd,
368+
StacUsername: "u", StacPassword: "t",
369+
})
370+
371+
ring := [][]float64{{18.06, 59.32}, {18.07, 59.32}, {18.07, 59.33}}
372+
if _, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "", ring); err != nil {
373+
t.Fatal(err)
374+
}
375+
376+
line := strings.Join(readInvocation(t, record).Args, " ")
377+
if !strings.Contains(line, `--footprint-json [[18.06,59.32],[18.07,59.32],[18.07,59.33]]`) {
378+
t.Errorf("args %q did not carry the drawn footprint", line)
379+
}
380+
if strings.Contains(line, "--building-id") {
381+
t.Errorf("args %q sent a building id nobody picked", line)
382+
}
383+
}
384+
360385
// Not picking one must not send an empty flag the module would treat as a
361386
// building named "".
362387
func TestDeriveOmitsTheBuildingFlagWhenNoneIsPicked(t *testing.T) {
@@ -367,7 +392,7 @@ func TestDeriveOmitsTheBuildingFlagWhenNoneIsPicked(t *testing.T) {
367392
Enabled: true, Command: cmd, StacUsername: "u", StacPassword: "t",
368393
})
369394

370-
if _, err := s.Derive(context.Background(), stockholmLat, stockholmLon, ""); err != nil {
395+
if _, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "", nil); err != nil {
371396
t.Fatal(err)
372397
}
373398

@@ -453,7 +478,7 @@ func TestDeriveSurfacesTheModuleErrorMessage(t *testing.T) {
453478
`{"error":"Geotorget rejected the credentials","kind":"MissingCredentials"}`)
454479
s := svc(t, &config.RoofModel{Enabled: true, Command: cmd, StacUsername: "u", StacPassword: "t"})
455480

456-
_, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "")
481+
_, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "", nil)
457482
if err == nil {
458483
t.Fatal("want an error")
459484
}
@@ -474,7 +499,7 @@ func TestModuleErrorSurvivesLibraryWarnings(t *testing.T) {
474499
`{"error":"STAC search returned HTTP 404","kind":"GeotorgetError"}`+"\n")
475500
s := svc(t, &config.RoofModel{Enabled: true, Command: cmd, StacUsername: "u", StacPassword: "t"})
476501

477-
_, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "")
502+
_, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "", nil)
478503
if err == nil {
479504
t.Fatal("want an error")
480505
}
@@ -489,7 +514,7 @@ func TestDeriveReportsNonJSONFailure(t *testing.T) {
489514
cmd := stubModule(t, "stderr", "Traceback (most recent call last):\n MemoryError\n")
490515
s := svc(t, &config.RoofModel{Enabled: true, Command: cmd, StacUsername: "u", StacPassword: "t"})
491516

492-
_, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "")
517+
_, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "", nil)
493518
if err == nil || !strings.Contains(err.Error(), "roof model failed") {
494519
t.Errorf("err = %v, want a plain failure", err)
495520
}
@@ -499,7 +524,7 @@ func TestDeriveRejectsUnknownSchemaVersion(t *testing.T) {
499524
cmd := stubModule(t, "stdout", `{"schema_version":99,"arrays":[]}`)
500525
s := svc(t, &config.RoofModel{Enabled: true, Command: cmd, StacUsername: "u", StacPassword: "t"})
501526

502-
_, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "")
527+
_, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "", nil)
503528
if err == nil || !strings.Contains(err.Error(), "schema_version") {
504529
t.Errorf("err = %v, want a schema-version rejection", err)
505530
}
@@ -509,7 +534,7 @@ func TestDeriveRejectsUnreadableOutput(t *testing.T) {
509534
cmd := stubModule(t, "stdout", "not-json-at-all")
510535
s := svc(t, &config.RoofModel{Enabled: true, Command: cmd, StacUsername: "u", StacPassword: "t"})
511536

512-
_, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "")
537+
_, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "", nil)
513538
if err == nil || !strings.Contains(err.Error(), "unreadable") {
514539
t.Errorf("err = %v, want an unreadable-output error", err)
515540
}
@@ -525,7 +550,7 @@ func TestDeriveIsTimeBoxed(t *testing.T) {
525550
})
526551

527552
start := time.Now()
528-
_, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "")
553+
_, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "", nil)
529554
if err == nil || !strings.Contains(err.Error(), "timed out") {
530555
t.Errorf("err = %v, want a timeout", err)
531556
}
@@ -576,7 +601,7 @@ func TestDeriveAcceptsLegacyGeotorgetKeys(t *testing.T) {
576601
GeotorgetUsername: "legacy-op", GeotorgetToken: "legacy-secret",
577602
})
578603

579-
if _, err := s.Derive(context.Background(), stockholmLat, stockholmLon, ""); err != nil {
604+
if _, err := s.Derive(context.Background(), stockholmLat, stockholmLon, "", nil); err != nil {
580605
t.Fatal(err)
581606
}
582607

@@ -616,7 +641,7 @@ func TestDeriveCustomCatalogSkipsSwedenGateAndPassesStacArgs(t *testing.T) {
616641
})
617642

618643
// Berlin: outside Lantmäteriet coverage, fine for a custom catalog.
619-
if _, err := s.Derive(context.Background(), 52.52, 13.40, ""); err != nil {
644+
if _, err := s.Derive(context.Background(), 52.52, 13.40, "", nil); err != nil {
620645
t.Fatal(err)
621646
}
622647

@@ -653,7 +678,7 @@ func TestDeriveCustomCatalogWorksAnonymously(t *testing.T) {
653678
StacBaseURL: "https://stac.example.org",
654679
})
655680

656-
if _, err := s.Derive(context.Background(), 52.52, 13.40, ""); err != nil {
681+
if _, err := s.Derive(context.Background(), 52.52, 13.40, "", nil); err != nil {
657682
t.Fatal(err)
658683
}
659684

@@ -683,7 +708,7 @@ func TestDeriveDefaultCatalogStillRefusesOutsideSweden(t *testing.T) {
683708
Enabled: true, Command: "no-such-command",
684709
StacUsername: "u", StacPassword: "p",
685710
})
686-
_, err := s.Derive(context.Background(), 52.52, 13.40, "")
711+
_, err := s.Derive(context.Background(), 52.52, 13.40, "", nil)
687712
if !errors.Is(err, ErrOutsideCoverage) {
688713
t.Errorf("err = %v, want ErrOutsideCoverage", err)
689714
}

0 commit comments

Comments
 (0)