if go-coverage is called in a coverage buffer, update it by using stored variables
move some coverage code into own functions