Documentation ¶
Overview ¶
Package testing is a generated GoMock package.
Index ¶
- Constants
- Variables
- func GenDbFile(path string) error
- func GenTestDirs() (srcDir string, destDir string, err error)
- func GenTextFiles(dir string, fileContent map[string]string) error
- func VerifyDbFile(t *testing.T, path string)
- func VerifyIgnoredFile(t *testing.T, path string)
- func VerifyTextFile(t *testing.T, path string, content string)
- type FakeTime
- type MockWorkflow
- type MockWorkflowMockRecorder
Constants ¶
View Source
const CreateTableQuery = `
CREATE TABLE my_table (
id INTEGER PRIMARY KEY,
name TEXT,
age INTEGER
);
`
View Source
const FileContent = "this is a file."
View Source
const InsertQuery = `
INSERT INTO my_table (name, age)
VALUES ('John Smith', 35);
`
View Source
const SelectQuery = `
SELECT * FROM my_table WHERE name = 'John Smith';
`
Variables ¶
View Source
var TestFiles = []string{
"dir1/a.txt",
"dir1/db/db.sqlite3",
"dir2/b.conf",
"dir3/.c",
".d",
}
Functions ¶
func GenTestDirs ¶
func VerifyDbFile ¶
func VerifyIgnoredFile ¶
Types ¶
type FakeTime ¶
func NewFakeTime ¶
type MockWorkflow ¶
type MockWorkflow struct {
// contains filtered or unexported fields
}
MockWorkflow is a mock of Workflow interface.
func NewMockWorkflow ¶
func NewMockWorkflow(ctrl *gomock.Controller) *MockWorkflow
NewMockWorkflow creates a new mock instance.
func (*MockWorkflow) EXPECT ¶
func (m *MockWorkflow) EXPECT() *MockWorkflowMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockWorkflowMockRecorder ¶
type MockWorkflowMockRecorder struct {
// contains filtered or unexported fields
}
MockWorkflowMockRecorder is the mock recorder for MockWorkflow.
func (*MockWorkflowMockRecorder) Run ¶
func (mr *MockWorkflowMockRecorder) Run() *gomock.Call
Run indicates an expected call of Run.
Click to show internal directories.
Click to hide internal directories.