Skip to content

Preserve verbosity argument in HumanReadableOutputRecorder.record(). #707

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 17, 2024

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Sep 17, 2024

This PR restores/undeprecates the verbosity argument to HumanReadableOutputRecorder.record() that was deprecated in #677. We still need to be able to override the command-line-specified value in the event stream.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

This PR restores/undeprecates the `verbosity` argument to
`HumanReadableOutputRecorder.record()` that was deprecated in #677. We still
need to be able to override the command-line-specified value in the event
stream.
@grynspan grynspan added bug 🪲 Something isn't working tools integration Integration of swift-testing into tools/IDEs labels Sep 17, 2024
@grynspan grynspan self-assigned this Sep 17, 2024
@grynspan grynspan added this to the Swift 6.1 milestone Sep 17, 2024
@grynspan
Copy link
Contributor Author

@swift-ci test

in eventContext: borrowing Event.Context,
verbosity: Int? = nil
) -> [Message] {
let verbosity: Int = if let verbosity {
Copy link
Contributor Author

@grynspan grynspan Sep 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't use the Elvis operator (??) with borrowed values (yet.)

@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan merged commit 838a934 into main Sep 17, 2024
3 checks passed
@grynspan grynspan deleted the jgrynspan/undeprecate-human-readable-output-verbosity branch September 17, 2024 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working tools integration Integration of swift-testing into tools/IDEs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants