Total Complexity | 7 |
Dependencies | 4 |
Dependents | 0 |
Total lines | 103 |
Lines of code | 64 |
Logical lines of code | 39 |
Comment lines | 6 |
Methods | 7 |
Properties | 1 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
test_validate_returns_true_for_valid_order_payment() | 57 | 1 | 17 | |
test_validate_throws_error_if_unable_to_fetch_charge() | 60 | 1 | 13 | |
test_validate_returns_false_for_mismatched_transaction_id() | 62 | 1 | 11 | |
setUp() | 65 | 1 | 10 | |
test_validate_returns_false_for_non_charge_event() | 71 | 1 | 5 | |
test_validate_returns_false_for_non_woocommerce_order() | 71 | 1 | 5 | |
mock_event_data() | 79 | 1 | 3 |