mocks

package
v0.0.0-...-9165781 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 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 NewAnalyzer

func NewAnalyzer(t mockConstructorTestingTNewAnalyzer) *Analyzer

NewAnalyzer creates a new instance of Analyzer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Analyzer) Analyze

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

Analyze provides a mock function with given fields:

func (*Analyzer) GetColumnsAndConstraints

func (_m *Analyzer) GetColumnsAndConstraints(db database.Connector, selectedTables []database.TableDetail) ([]database.TableResult, error)

GetColumnsAndConstraints provides a mock function with given fields: db, selectedTables

func (*Analyzer) GetConnectionString

func (_m *Analyzer) GetConnectionString() (string, error)

GetConnectionString provides a mock function with given fields:

func (*Analyzer) GetSchemas

func (_m *Analyzer) GetSchemas(db database.Connector) ([]string, error)

GetSchemas provides a mock function with given fields: db

func (*Analyzer) GetTables

func (_m *Analyzer) GetTables(db database.Connector, selectedSchemas []string) ([]database.TableDetail, error)

GetTables provides a mock function with given fields: db, selectedSchemas

type Connector

type Connector struct {
	mock.Mock
}

Connector is an autogenerated mock type for the Connector type

func NewConnector

func NewConnector(t mockConstructorTestingTNewConnector) *Connector

NewConnector creates a new instance of Connector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 database.TableDetail) ([]database.ColumnResult, error)

GetColumns provides a mock function with given fields: tableName

func (*Connector) GetConstraints

func (_m *Connector) GetConstraints(tableName database.TableDetail) ([]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(schemaNames []string) ([]database.TableDetail, error)

GetTables provides a mock function with given fields: schemaNames

type ConnectorFactory

type ConnectorFactory struct {
	mock.Mock
}

ConnectorFactory is an autogenerated mock type for the ConnectorFactory type

func NewConnectorFactory

func NewConnectorFactory(t mockConstructorTestingTNewConnectorFactory) *ConnectorFactory

NewConnectorFactory creates a new instance of ConnectorFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewDiagram

func NewDiagram(t mockConstructorTestingTNewDiagram) *Diagram

NewDiagram creates a new instance of Diagram. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewLoadingSpinner

func NewLoadingSpinner(t mockConstructorTestingTNewLoadingSpinner) *LoadingSpinner

NewLoadingSpinner creates a new instance of LoadingSpinner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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 NewMermerdConfig

func NewMermerdConfig(t mockConstructorTestingTNewMermerdConfig) *MermerdConfig

NewMermerdConfig creates a new instance of MermerdConfig. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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) Debug

func (_m *MermerdConfig) Debug() bool

Debug 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) OmitAttributeKeys

func (_m *MermerdConfig) OmitAttributeKeys() bool

OmitAttributeKeys provides a mock function with given fields:

func (*MermerdConfig) OmitConstraintLabels

func (_m *MermerdConfig) OmitConstraintLabels() bool

OmitConstraintLabels 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) SchemaPrefixSeparator

func (_m *MermerdConfig) SchemaPrefixSeparator() string

SchemaPrefixSeparator provides a mock function with given fields:

func (*MermerdConfig) Schemas

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

Schemas 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) ShowDescriptions

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

ShowDescriptions provides a mock function with given fields:

func (*MermerdConfig) ShowSchemaPrefix

func (_m *MermerdConfig) ShowSchemaPrefix() bool

ShowSchemaPrefix provides a mock function with given fields:

func (*MermerdConfig) UseAllSchemas

func (_m *MermerdConfig) UseAllSchemas() bool

UseAllSchemas 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 NewQuestioner

func NewQuestioner(t mockConstructorTestingTNewQuestioner) *Questioner

NewQuestioner creates a new instance of Questioner. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

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