refactor(tests): Inline all language-specific parse methods #530
No reviewers
Labels
No labels
Compat/Breaking
Kind
Bad merge
Kind
Bug
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
New language
Kind
Security
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: mergiraf/mergiraf#530
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "wetneb/remove_lang_specific_parse_methods"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I get annoyed of the need to define a new
TestContext::parse_blah
method every time I write a test using a language that's not used in unit tests already. It feels easy enough to provide a filename from which the language can be generated.So this PR removes them… but it's really a matter of taste, I can also live with adding those methods.
Fair enough.. though it's still a bit annoying that we need to look-up
LangProfile
s for languages that we know we support. But I don't know of any solution other than maybe definining a const (or, well, aLazyLock
) for each language and referring to that when callingctx.parse
– which arguably wouldn't even save us that many characters