mocks

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct {
	mock.Mock
}

Analyzer is an autogenerated mock type for the Analyzer type

func (*Analyzer) Analyze

func (_m *Analyzer) Analyze() (*database.Result, error)

Analyze provides a mock function with given fields:

type Connector

type Connector struct {
	mock.Mock
}

Connector is an autogenerated mock type for the Connector type

func (*Connector) Close

func (_m *Connector) Close()

Close provides a mock function with given fields:

func (*Connector) Connect

func (_m *Connector) Connect() error

Connect provides a mock function with given fields:

func (*Connector) GetColumns

func (_m *Connector) GetColumns(tableName string) ([]database.ColumnResult, error)

GetColumns provides a mock function with given fields: tableName

func (*Connector) GetConstraints

func (_m *Connector) GetConstraints(tableName string) ([]database.ConstraintResult, error)

GetConstraints provides a mock function with given fields: tableName

func (*Connector) GetDbType

func (_m *Connector) GetDbType() database.DbType

GetDbType provides a mock function with given fields:

func (*Connector) GetSchemas

func (_m *Connector) GetSchemas() ([]string, error)

GetSchemas provides a mock function with given fields:

func (*Connector) GetTables

func (_m *Connector) GetTables(schemaName string) ([]string, error)

GetTables provides a mock function with given fields: schemaName

type ConnectorFactory

type ConnectorFactory struct {
	mock.Mock
}

ConnectorFactory is an autogenerated mock type for the ConnectorFactory type

func (*ConnectorFactory) NewConnector

func (_m *ConnectorFactory) NewConnector(connectionString string) (database.Connector, error)

NewConnector provides a mock function with given fields: connectionString

type Diagram

type Diagram struct {
	mock.Mock
}

Diagram is an autogenerated mock type for the Diagram type

func (*Diagram) Create

func (_m *Diagram) Create(result *database.Result) error

Create provides a mock function with given fields: result

type LoadingSpinner

type LoadingSpinner struct {
	mock.Mock
}

LoadingSpinner is an autogenerated mock type for the LoadingSpinner type

func (*LoadingSpinner) Start

func (_m *LoadingSpinner) Start(text string)

Start provides a mock function with given fields: text

func (*LoadingSpinner) Stop

func (_m *LoadingSpinner) Stop()

Stop provides a mock function with given fields:

type MermerdConfig

type MermerdConfig struct {
	mock.Mock
}

MermerdConfig is an autogenerated mock type for the MermerdConfig type

func (*MermerdConfig) ConnectionString

func (_m *MermerdConfig) ConnectionString() string

ConnectionString provides a mock function with given fields:

func (*MermerdConfig) ConnectionStringSuggestions

func (_m *MermerdConfig) ConnectionStringSuggestions() []string

ConnectionStringSuggestions provides a mock function with given fields:

func (*MermerdConfig) EncloseWithMermaidBackticks

func (_m *MermerdConfig) EncloseWithMermaidBackticks() bool

EncloseWithMermaidBackticks provides a mock function with given fields:

func (*MermerdConfig) OutputFileName

func (_m *MermerdConfig) OutputFileName() string

OutputFileName provides a mock function with given fields:

func (*MermerdConfig) Schema

func (_m *MermerdConfig) Schema() string

Schema provides a mock function with given fields:

func (*MermerdConfig) SelectedTables

func (_m *MermerdConfig) SelectedTables() []string

SelectedTables provides a mock function with given fields:

func (*MermerdConfig) ShowAllConstraints

func (_m *MermerdConfig) ShowAllConstraints() bool

ShowAllConstraints provides a mock function with given fields:

func (*MermerdConfig) UseAllTables

func (_m *MermerdConfig) UseAllTables() bool

UseAllTables provides a mock function with given fields:

type Questioner

type Questioner struct {
	mock.Mock
}

Questioner is an autogenerated mock type for the Questioner type

func (*Questioner) AskConnectionQuestion

func (_m *Questioner) AskConnectionQuestion(suggestions []string) (string, error)

AskConnectionQuestion provides a mock function with given fields: suggestions

func (*Questioner) AskSchemaQuestion

func (_m *Questioner) AskSchemaQuestion(schemas []string) (string, error)

AskSchemaQuestion provides a mock function with given fields: schemas

func (*Questioner) AskTableQuestion

func (_m *Questioner) AskTableQuestion(tables []string) ([]string, error)

AskTableQuestion provides a mock function with given fields: tables

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL