(self, max_rating)
| 118 | print("Example 7") |
| 119 | class RatingInternal: |
| 120 | def __init__(self, max_rating): |
| 121 | assert max_rating > 0, f"Invalid {max_rating=}" |
| 122 | self.max_rating = max_rating |
| 123 | self.ratings = [] |
| 124 | |
| 125 | def rate(self, rating): |
| 126 | assert 0 < rating <= self.max_rating, f"Invalid {rating=}" |
nothing calls this directly
no outgoing calls
no test coverage detected