unithelper

package
v0.0.0-...-1fa52ee Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0, BSD-2-Clause, ISC, + 1 more Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DummyBasicRes

func DummyBasicRes(callback func(mockDal *mockdal.Dal)) *mockcontext.BasicRes

DummyBasicRes FIXME ...

func DummyLogger

func DummyLogger() *mocklog.Logger

DummyLogger FIXME ...

func DummySubTaskContext

func DummySubTaskContext(db dal.Dal) *mockplugin.SubTaskContext

DummySubTaskContext FIXME ...

Types

type TableInfoChecker

type TableInfoChecker struct {
	// contains filtered or unexported fields
}

func NewTableInfoChecker

func NewTableInfoChecker(cfg TableInfoCheckerConfig) *TableInfoChecker

func (*TableInfoChecker) FeedIn

func (checker *TableInfoChecker) FeedIn(modelsDir string, f func() []dal.Tabler, additionalIgnorablePackages ...string)

The FeedIn function iterates through the model definitions, identifies all the tables by parsing the source files, and then compares them with the output obtained from the GetTablesInfo function. If the plugin has no models directory, pass in the root directory of the plugin

func (*TableInfoChecker) Verify

func (checker *TableInfoChecker) Verify() errors.Error

type TableInfoCheckerConfig

type TableInfoCheckerConfig struct {
	TablePrefix         string
	ValidatePluginCount bool
	IgnoreTables        []string
}

Jump to

Keyboard shortcuts

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