suite: github.com/gobuffalo/suite Index | Files | Directories

package suite

import "github.com/gobuffalo/suite"

Index

Package Files

model.go session.go suite.go version.go

Constants

const Version = "v2.6.0"

func NewSessionStore Uses

func NewSessionStore() sessions.Store

func Run Uses

func Run(t *testing.T, s suite.TestingSuite)

type Action Uses

type Action struct {
    *Model
    Session *buffalo.Session
    App     *buffalo.App
    // contains filtered or unexported fields
}

func NewAction Uses

func NewAction(app *buffalo.App) *Action

NewAction returns new Action for given buffalo.App

func NewActionWithFixtures Uses

func NewActionWithFixtures(app *buffalo.App, box packd.Box) (*Action, error)

func (*Action) HTML Uses

func (as *Action) HTML(u string, args ...interface{}) *httptest.Request

func (*Action) JSON Uses

func (as *Action) JSON(u string, args ...interface{}) *httptest.JSON

func (*Action) SetupTest Uses

func (as *Action) SetupTest()

func (*Action) TearDownTest Uses

func (as *Action) TearDownTest()

type Box Uses

type Box interface {
    packd.Finder
    packd.Walkable
}

type Model Uses

type Model struct {
    suite.Suite
    *require.Assertions
    DB       *pop.Connection
    Fixtures packd.Finder
}

func NewModel Uses

func NewModel() *Model

func NewModelWithFixtures Uses

func NewModelWithFixtures(box packd.Box) (*Model, error)

func NewModelWithFixturesAndContext Uses

func NewModelWithFixturesAndContext(box packd.Box, ctx *plush.Context) (*Model, error)

func (*Model) DBDelta Uses

func (m *Model) DBDelta(delta int, name string, fn func())

func (*Model) LoadFixture Uses

func (as *Model) LoadFixture(name string)

func (*Model) SetupTest Uses

func (m *Model) SetupTest()

func (*Model) TearDownTest Uses

func (m *Model) TearDownTest()

Directories

PathSynopsis
fix

Package suite imports 16 packages (graph). Updated 2018-11-21. Refresh now. Tools for package owners.