Use production directive extraction in import tests
This commit is contained in:
@@ -578,6 +578,14 @@ Focused check: `go test ./internal/engine` and `go test .`.
|
||||
Finding: **F03**.
|
||||
Owners: `internal/engine/import_spec.go`, `import_spec_test.go`, directive/selector tests.
|
||||
|
||||
Status: **complete** (F03). Prior completed commits: `2736ddf`, `deb9aa5`,
|
||||
`ae3408a`, `ea27f17`, `08a8c25`, `877c497`, `8aba43d`, `7bf2f0c`,
|
||||
`0f9ecf1`, `119b42c`, `247a12b`, `4fcff5f`, `12d350a`, `08f2a8f`,
|
||||
`826062a`, `e4a5ecb`, `3122e2f`. Validation passed:
|
||||
`env GOTOOLCHAIN=local GOPROXY=off GOTELEMETRY=off go test ./internal/engine -run 'Import|Directive|Directory|Glob|SourceVersion' -count=1`,
|
||||
`env GOTOOLCHAIN=local GOPROXY=off GOTELEMETRY=off go test ./internal/engine`,
|
||||
and `git diff --check`.
|
||||
|
||||
Change `parseImportSpecsYAML` to enter `extractRootDirectives` with the appropriate
|
||||
source context and return its imports/diagnostics. Keep parsing source fixtures
|
||||
through the real YAML boundary. Remove `parseImportSpecificationDirective`, its
|
||||
|
||||
Reference in New Issue
Block a user