-
Notifications
You must be signed in to change notification settings - Fork 195
Update Coverage for Ruby 3.2 interface changes. #3150
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,12 @@ | |
|
||
module Coverage | ||
|
||
def self.start | ||
def self.supported?(mode) | ||
mode == :lines | ||
end | ||
|
||
def self.start(*arguments, **options) | ||
# Arguments/options are ignored. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't seem correct, e.g. if For unknown kwargs, should we raise ArgumentError? Surprisingly CRuby seems to ignores extra kwargs:
But it does not allow any positional argument:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Actually that seems the CRuby semantics :/
(and also There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we should write more ruby specs for this behaviour? I think we can tighten it up for 3.3. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes that would be great, and you can add the specs in this PR and they'll get sync'd in ruby/spec.
I'm not sure we can change this confusing behavior, compatibility-wise. At least it seems useful to spec the current behavior, even though it's confusing. |
||
Truffle::Coverage.enable | ||
end | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.