top returns the Label of the last debug_marker_begin command if exists.
()
| 72 | |
| 73 | // top returns the Label of the last debug_marker_begin command if exists. |
| 74 | func (dm *debugMarkerStack) top() *api.Label { |
| 75 | if dm.getSize() > 0 { |
| 76 | position := dm.positionsOfDebugMarkersBegin[dm.getSize()-1] |
| 77 | if position < len(dm.labels) { |
| 78 | return dm.labels[position] |
| 79 | } |
| 80 | } |
| 81 | return &api.Label{} |
| 82 | } |
| 83 | |
| 84 | func (dm *debugMarkerStack) pop() { |
| 85 | if dm.getSize() > 0 { |
no test coverage detected