(options: string)
| 397 | }; |
| 398 | // A file that only wires: no method, no struct of its own. |
| 399 | const gce = (options: string) => `package gce |
| 400 | |
| 401 | import ( |
| 402 | "context" |
| 403 | |
| 404 | "example.com/app/discovery/refresh" |
| 405 | ) |
| 406 | |
| 407 | func refreshInstances(ctx context.Context) ([]*refresh.Group, error) { return nil, nil } |
| 408 | |
| 409 | func NewDiscovery() *refresh.Discovery { |
| 410 | return refresh.NewDiscovery(refresh.Options{${options}}) |
| 411 | } |
| 412 | `; |
| 413 | write('go.mod', FILES['go.mod']!); |
| 414 | write('discovery/refresh/refresh.go', FILES['discovery/refresh/refresh.go']!); |
| 415 | write('discovery/gce/gce.go', gce('Mech: "gce"')); |
no outgoing calls
no test coverage detected