gocov: github.com/axw/gocov Index | Files | Directories

package gocov

import "github.com/axw/gocov"

Package gocov is a code coverage analysis tool for Go.

Index

Package Files

gocov.go

type Function Uses

type Function struct {
    // Name is the name of the function. If the function has a receiver, the
    // name will be of the form T.N, where T is the type and N is the name.
    Name string

    // File is the full path to the file in which the function is defined.
    File string

    // Start is the start offset of the function's signature.
    Start int

    // End is the end offset of the function.
    End int

    // statements registered with this function.
    Statements []*Statement
}

func (*Function) Accumulate Uses

func (f *Function) Accumulate(f2 *Function) error

Accumulate will accumulate the coverage information from the provided Function into this Function.

type Package Uses

type Package struct {
    // Name is the canonical path of the package.
    Name string

    // Functions is a list of functions registered with this package.
    Functions []*Function
}

func (*Package) Accumulate Uses

func (p *Package) Accumulate(p2 *Package) error

Accumulate will accumulate the coverage information from the provided Package into this Package.

type Statement Uses

type Statement struct {
    // Start is the start offset of the statement.
    Start int

    // End is the end offset of the statement.
    End int

    // Reached is the number of times the statement was reached.
    Reached int64
}

func (*Statement) Accumulate Uses

func (s *Statement) Accumulate(s2 *Statement) error

Accumulate will accumulate the coverage information from the provided Statement into this Statement.

Directories

PathSynopsis
gocov
gocov/internal/testflag
gocovutil

Package gocov imports 1 packages (graph) and is imported by 17 packages. Updated 2017-11-14. Refresh now. Tools for package owners.