Skip to content

Module04/Task03 - Enhance tests to cover the exceptional cases #10

@asankov

Description

@asankov

According to a coverage report I ran, on a solution that is passing all cases, there are a few uncovered lines of code.

  • SocialNetwork::add_panda throws Exception when panda already in social network
  • SocialNetwork::make_friends throws Exception when pandas are already friends
  • invalid input cases for Panda::__init__
  • Panda::__str__ - currently what this method should return is not defined in the task. Maybe we should define a wanted format and check for that in the test case?
  • Panda::__hash__ - maybe check the method is defined?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions