gotests: github.com/cweill/gotests/internal/models Index | Files

package models

import "github.com/cweill/gotests/internal/models"

Index

Package Files

models.go

type Expression Uses

type Expression struct {
    Value      string
    IsStar     bool
    IsVariadic bool
    IsWriter   bool
    Underlying string
}

func (*Expression) String Uses

func (e *Expression) String() string

type Field Uses

type Field struct {
    Name  string
    Type  *Expression
    Index int
}

func (*Field) IsBasicType Uses

func (f *Field) IsBasicType() bool

func (*Field) IsNamed Uses

func (f *Field) IsNamed() bool

func (*Field) IsStruct Uses

func (f *Field) IsStruct() bool

func (*Field) IsWriter Uses

func (f *Field) IsWriter() bool

func (*Field) ShortName Uses

func (f *Field) ShortName() string

type Function Uses

type Function struct {
    Name         string
    IsExported   bool
    Receiver     *Receiver
    Parameters   []*Field
    Results      []*Field
    ReturnsError bool
}

func (*Function) FullName Uses

func (f *Function) FullName() string

func (*Function) IsNaked Uses

func (f *Function) IsNaked() bool

func (*Function) OnlyReturnsError Uses

func (f *Function) OnlyReturnsError() bool

func (*Function) OnlyReturnsOneValue Uses

func (f *Function) OnlyReturnsOneValue() bool

func (*Function) ReturnsMultiple Uses

func (f *Function) ReturnsMultiple() bool

func (*Function) TestName Uses

func (f *Function) TestName() string

func (*Function) TestParameters Uses

func (f *Function) TestParameters() []*Field

func (*Function) TestResults Uses

func (f *Function) TestResults() []*Field
type Header struct {
    Comments []string
    Package  string
    Imports  []*Import
    Code     []byte
}

type Import Uses

type Import struct {
    Name, Path string
}

type Path Uses

type Path string

func (Path) IsTestPath Uses

func (p Path) IsTestPath() bool

func (Path) TestPath Uses

func (p Path) TestPath() string

type Receiver Uses

type Receiver struct {
    *Field
    Fields []*Field
}

Package models imports 2 packages (graph) and is imported by 6 packages. Updated 2017-12-21. Refresh now. Tools for package owners.