{"modulePath":"github.com/GoCodeAlone/workflow-plugin-data-engineering","version":"v0.3.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package testhelpers\n\nPackage testhelpers provides test utilities for workflow-plugin-data-engineering. It re-exports the registry helpers, mock constructors, and types from the internal packages so that external test suites (e.g. workflow-scenarios/e2e) can perform full lifecycle tests without importing internal packages directly.\n\n## Functions\n\n```go\nfunc CDCLookupMemoryProvider(sourceID string) (*cdc.MemoryProvider, bool)\n```\nCDCLookupMemoryProvider returns the MemoryProvider for sourceID, if registered.\n\n```go\nfunc CDCUnregisterSource(sourceID string)\n```\nCDCUnregisterSource removes a CDC source from the global registry.\n\n```go\nfunc CatalogUnregisterModule(name string)\n```\nCatalogUnregisterModule removes a catalog module (DataHub/OpenMetadata) from the registry.\n\n```go\nfunc LakehouseUnregisterCatalog(name string)\n```\nLakehouseUnregisterCatalog removes a catalog from the lakehouse registry.\n\n```go\nfunc MigrateUnregisterModule(name string)\n```\nMigrateUnregisterModule removes a migrate.schema module from the registry.\n\n```go\nfunc NewNeo4jModuleForTest(name string, driver Neo4jDriver) *graph.Neo4jModule\n```\nNewNeo4jModuleForTest creates a Neo4jModule wired with a mock driver.\n\n```go\nfunc NewPlugin(version string) sdk.PluginProvider\n```\nNewPlugin returns a new data-engineering plugin instance, cast to the full provider interface used in tests.\n\n```go\nfunc QualityNewModuleWithExecutor(name string, exec DBQuerier) error\n```\nQualityNewModuleWithExecutor creates a quality.checks ChecksModule pre-wired with the given executor and registers it under name. The caller must call QualityUnregisterChecksModule(name) in t.Cleanup.\n\n```go\nfunc QualitySetExecutor(name string, exec DBQuerier)\n```\nQualitySetExecutor injects a DBQuerier into the named quality.checks module. It is a no-op if the module is not found in the registry.\n\n```go\nfunc QualityUnregisterChecksModule(name string)\n```\nQualityUnregisterChecksModule removes a quality.checks module from the registry.\n\n```go\nfunc RegisterNeo4jModule(name string, m *graph.Neo4jModule) error\n```\nRegisterNeo4jModule registers a pre-wired Neo4j module.\n\n```go\nfunc TSUnregister(name string)\n```\nTSUnregister removes a time-series module from the registry.\n\n```go\nfunc UnregisterNeo4jModule(name string)\n```\nUnregisterNeo4jModule removes a Neo4j module from the registry.\n\n## Types\n\n```go\ntype CDCSchemaVersion = cdc.SchemaVersion\n```\nCDCSchemaVersion re-exports cdc.SchemaVersion.\n\n```go\ntype DBQuerier = quality.DBQuerier\n```\nDBQuerier re-exports quality.DBQuerier so callers can implement it.\n\n```go\ntype GraphResult = graph.GraphResult\n```\nGraphResult is the narrow interface over neo4j.ResultWithContext.\n\n```go\ntype GraphSession = graph.GraphSession\n```\nGraphSession is the narrow interface over neo4j.SessionWithContext.\n\n```go\ntype Neo4jDriver = graph.Neo4jDriver\n```\nNeo4jDriver is the narrow interface over neo4j.DriverWithContext.\n\n```go\ntype Neo4jRecord = neo4j.Record\n```\nNeo4jRecord re-exports neo4j.Record for use in mock implementations.\n\n```go\ntype Neo4jSessionConfig = neo4j.SessionConfig\n```\nNeo4jSessionConfig re-exports neo4j.SessionConfig.\n\n","path":"github.com/GoCodeAlone/workflow-plugin-data-engineering/testhelpers","name":"testhelpers","synopsis":"Package testhelpers provides test utilities for workflow-plugin-data-engineering.","isRedistributable":true}
