Skip to content

Use regular expressions for testdiff replacements - #2151

Merged
pietern merged 4 commits into
mainfrom
testdiff-regexp
Jan 15, 2025
Merged

Use regular expressions for testdiff replacements#2151
pietern merged 4 commits into
mainfrom
testdiff-regexp

Conversation

@pietern

Copy link
Copy Markdown
Contributor

Changes

Replacement was split between the type ReplacementContext and the ReplaceOutput function. The latter also ran a couple of regular expressions. This change consolidates them such that it is up to the caller to compose the set of replacements to use.

This change is required to accommodate UUID replacement in #2146.

Comment threadintegration/bundle/init_default_python_test.go Outdated
Comment threadintegration/bundle/init_default_python_test.go
@pietern

Copy link
Copy Markdown
ContributorAuthor

Integration test failure is unrelated.

@pietern
pietern disabled auto-merge January 15, 2025 11:15
@pietern
pietern merged commit 626045a into mainJan 15, 2025
@pietern
pietern deleted the testdiff-regexp branch January 15, 2025 11:15
denik pushed a commit that referenced this pull request May 20, 2026
## Changes
Replacement was split between the type `ReplacementContext` and the
`ReplaceOutput` function. The latter also ran a couple of regular
expressions. This change consolidates them such that it is up to the
caller to compose the set of replacements to use.
This change is required to accommodate UUID replacement in #2146.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@pietern@denik