(pred, label)
| 720 | |
| 721 | |
| 722 | def eval_order(pred, label): |
| 723 | pred_total = label_total = cnt = 0 |
| 724 | if len(pred['orderBy']) > 0: |
| 725 | pred_total = 1 |
| 726 | if len(label['orderBy']) > 0: |
| 727 | label_total = 1 |
| 728 | if len(label['orderBy']) > 0 and pred['orderBy'] == label['orderBy'] and \ |
| 729 | ((pred['limit'] is None and label['limit'] is None) or (pred['limit'] is not None and label['limit'] is not None)): |
| 730 | cnt = 1 |
| 731 | return label_total, pred_total, cnt |
| 732 | |
| 733 | |
| 734 | def eval_and_or(pred, label): |
nothing calls this directly
no outgoing calls
no test coverage detected