Skip to content
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

Add inline disable configuration #1320

Merged
merged 4 commits into from
Apr 25, 2022
Merged

Add inline disable configuration #1320

merged 4 commits into from
Apr 25, 2022

Conversation

mbj
Copy link
Owner

@mbj mbj commented Apr 25, 2022

No description provided.

@mbj mbj force-pushed the add/inline-configuration branch from 9e60f0b to 8e350d7 Compare April 25, 2022 00:43
@mbj mbj self-assigned this Apr 25, 2022

let(:expected_associations) do
associations = {}
associations.compare_by_identity
Copy link
Owner Author

Choose a reason for hiding this comment

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

This is forced by parsers comment associator, I'm personally not super in favor to use object memory identity in any kind of API.

I'd prefer parser would use node index to associate, but I cannot change its API.

end

it 'returns parsed source' do
expect(subject).to eql(s(:sym, :source))
expect(subject.inspect).to eql(
Copy link
Owner Author

Choose a reason for hiding this comment

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

Comparing via inspect as Parser::Source::* only does identity on #== and #eql?. And writing peeking assertions is not as exhaustive. Basically an in-memory golden test :P

@mbj mbj force-pushed the add/inline-configuration branch 4 times, most recently from fff7aa5 to 9e9f409 Compare April 25, 2022 02:26
mbj added 4 commits April 25, 2022 02:27
* This allows to place `mutant:disable` comments next to subjects to
  mark them as disabled.
* Inheritance is not supported currently, so a comment on a class will
  not make this entire class disabled.
@mbj mbj force-pushed the add/inline-configuration branch 3 times, most recently from d52ff56 to 38f1e1c Compare April 25, 2022 02:32
@mbj mbj changed the title Add inline configuration Add inline disable configuration Apr 25, 2022
@mbj mbj merged commit 6a9ca66 into main Apr 25, 2022
@mbj mbj deleted the add/inline-configuration branch April 25, 2022 03:02
Sign up for free to 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.

1 participant