(o testStudent)
| 18 | } |
| 19 | |
| 20 | func (u testStudent) Less(o testStudent) bool { |
| 21 | if u.Score == o.Score { |
| 22 | return u.Name < o.Name |
| 23 | } |
| 24 | return u.Score > o.Score |
| 25 | } |
| 26 | |
| 27 | func TestHeap_Empty(t *testing.T) { |
| 28 | tests := []struct { |
nothing calls this directly
no outgoing calls
no test coverage detected