dave / courtney

Courtney is a coverage tool for Go
MIT License
168 stars 28 forks source link

Bug excluding blocks #4

Closed dave closed 7 years ago

dave commented 7 years ago
package a

func wrap(error) error

func a() error {
    var a bool
    var err error
    if err != nil {
        if a { // this line will not be excluded!
            return wrap(err) // *
        }
        return wrap(err) // *
    }
    return nil
}
dave commented 7 years ago

Closing because I'm not sure this is really a bug. Plus you can exclude the extra lines with the notest annotation.