Skip to content

test: extend the reusable-threshold stub assertion to the full assembled command line #462

Backlog

Description

@jflowers

From the PR #459 review (LOW, assertion-depth — divisor-testing):

cmd/gaze/ci_workflow_test.go:696 filters the stub gaze's recorded argv down to the three threshold flags, so the same script's remaining conditional assembly (--ai=opencode, --coverprofile=coverage.out presence in Go mode, and --model/--analyzer/--language omission when empty) stays covered only by substring pins on the YAML text (TestCIWorkflow_ReusableExternalAnalyzerInputs, lines 554-577). The change's own design note documents that substring pinning is what let the previous semantically-wrong guard and its incorrect comment ship.

Suggested follow-up: extend the assertion to the full assembled command line. The stub already records the complete invocation and the failure message already prints all args, so the extension is nearly free and closes the documented failure class for the script's other conditional arguments.

Review comment: #459 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions