Skip to content

Add edge-case tests for empty and non-Python scan targets #5

Description

@Johnkothapalli

Problem

The analyzer has limited coverage for valid targets that contain no Python files or point to a non-Python file. The intended CLI output and exit behavior should be explicit and stable.

Proposed scope

Add tests that document behavior for an empty directory, a directory containing only non-Python files, and a direct non-Python file target. If current behavior is inconsistent, propose the smallest compatible correction.

Acceptance criteria

  • tests use temporary directories and files;
  • no platform-specific paths;
  • expected file count, score, text output, and exit code are asserted;
  • README is updated only if user-visible behavior changes;
  • no new dependency is introduced.

This is suitable for a first contribution. Comment to claim it before opening a pull request.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions