(val int)
| 13 | } |
| 14 | |
| 15 | func (q *Queue) Push(val int) error { |
| 16 | select { |
| 17 | case q.ch <- val: |
| 18 | return nil |
| 19 | default: |
| 20 | return ErrQueueFull |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | func (q *Queue) Pop() int { |
| 25 | select { |
nothing calls this directly
no outgoing calls
no test coverage detected