Skip to content

Conversation

@k-tsj
Copy link
Member

@k-tsj k-tsj commented May 5, 2025

No description provided.

@k-tsj k-tsj requested a review from Copilot May 5, 2025 05:08
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the legacy PowerAssert.trace functionality and its supporting tests and helper code. The changes include eliminating trace tests and the test_core_ext_helper, updating the Context class to replace sub-context variants, and adjusting related documentation and Gemfile entries.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
test/trace_test.rb Removed tests that depended on PowerAssert.trace
test/test_helper.rb Removed dependency on test_core_ext_helper
test/test_core_ext_helper.rb Entire helper file related to PowerAssert.trace removed
lib/power_assert/context.rb Updated Context initialization and removed legacy sub-context classes; updated error message
lib/power_assert.rb Replaced call to BlockContext with direct Context instantiation and removed trace method
README.md Removed reference to pry-byebug-power_assert
Gemfile Removed the gem dependency for byebug

tp.return_value :
InspectedValue.new(SafeInspectable.new(tp.return_value).inspect)
@return_values << Value[method_id.to_s, val, locs[idx].lineno, nil]
@return_values << Value[method_id.to_s, val, locs.last.lineno, nil]
Copy link

Copilot AI May 5, 2025

Choose a reason for hiding this comment

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

The variable 'method_id' is used but not defined in the current scope. Define 'method_id' or update the code to properly reference an existing identifier.

Copilot uses AI. Check for mistakes.
@k-tsj k-tsj merged commit c1412c1 into ruby:master May 5, 2025
51 of 53 checks passed
@k-tsj k-tsj deleted the remove-trace branch May 5, 2025 05:14
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