Skip to content

Conversation

@artengin
Copy link
Contributor

Refs: #67

@coveralls
Copy link

coveralls commented Oct 16, 2025

Pull Request Test Coverage Report for Build 18741500428

Details

  • 100 of 102 (98.04%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 96.552%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/Commands/InitCommand.php 75 77 97.4%
Totals Coverage Status
Change from base Build 18737921966: 0.3%
Covered Lines: 336
Relevant Lines: 348

💛 - Coveralls

@DenTray DenTray requested a review from Copilot October 20, 2025 06:30
Copy link
Contributor

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

Refactors README generation by extracting logic from InitCommand into a dedicated ReadmeGenerator and updates tests to mock I/O at the Generators namespace level.

  • Introduces ReadmeGenerator with responsibilities for assembling and saving README content.
  • Refactors InitCommand to delegate README-related operations to ReadmeGenerator.
  • Updates tests to mock file_get_contents and file_put_contents calls within the Generators namespace.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/Generators/ReadmeGenerator.php New class encapsulating README generation and file operations.
src/Commands/InitCommand.php Delegates README steps to ReadmeGenerator; removes inlined README helpers.
tests/InitCommandTest.php Switches to mocking native functions in the Generators namespace and adjusts expectations.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@DenTray DenTray assigned artengin and unassigned DenTray Oct 23, 2025
@artengin artengin assigned DenTray and unassigned artengin Oct 23, 2025
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.

3 participants