MCPcopy
hub / github.com/testcontainers/testcontainers-go

github.com/testcontainers/testcontainers-go @v0.43.0 sqlite

repository ↗ · DeepWiki ↗ · release v0.43.0 ↗
3,159 symbols 15,937 edges 476 files 1,635 documented · 52%
README

Testcontainers

Main pipeline GoDoc Reference Go Report Card Quality Gate Status License

Open in GitHub Codespaces

Join our Slack

Testcontainers for Go is a Go package that makes it simple to create and clean up container-based dependencies for automated integration/smoke tests. The clean, easy-to-use API enables developers to programmatically define containers that should be run as part of a test and clean up those resources when the test is done.

You can find more information about Testcontainers for Go at golang.testcontainers.org, which is rendered from the ./docs directory.

Using Testcontainers for Go

Please visit the quickstart guide to understand how to add the dependency to your Go project.

Extension points exported contracts — how you extend this code

ContainerCustomizer (Interface)
ContainerCustomizer is an interface that can be used to configure the Testcontainers container request. The passed reque [6 …
options.go
LogConsumer (Interface)
} logConsumerInterface { LogConsumer represents any object that can handle a Log, it is up to the LogConsumer instance w [9 …
logconsumer.go
ContainerMountSource (Interface)
ContainerMountSource is the base for all mount sources [7 implementers]
mounts.go
NetworkCustomizer (Interface)
NetworkCustomizer is an interface that can be used to configure the network create request. [6 implementers]
network/network.go
Logger (Interface)
Logger defines the Logger interface. [6 implementers]
log/logger.go
Strategy (Interface)
Strategy defines the basic interface for a Wait Strategy [13 implementers]
wait/wait.go
Validator (Interface)
Validator is an interface that can be implemented by types that need to validate their state. [4 implementers]
validator.go
FileGenerator (Interface)
FileGenerator is the interface for the file generators, which takes a module and generate a file for it, returning an er [4 …
modulegen/internal/main.go

Core symbols most depended-on inside this repo

Printf
called by 882
log/logger.go
Close
called by 360
provider.go
WithStartupTimeout
called by 146
wait/sql.go
WithEnv
called by 121
modules/compose/compose.go
ForLog
called by 115
wait/log.go
State
called by 110
container.go
WaitUntilReady
called by 107
wait/wait.go
PortEndpoint
called by 105
container.go

Shape

Function 1,761
Method 939
Struct 341
FuncType 49
Interface 39
TypeAlias 30

Languages

Go100%
TypeScript1%

Modules by API surface

docker.go87 symbols
docker_test.go75 symbols
container.go70 symbols
options.go58 symbols
wait/strategytarget_mock_test.go52 symbols
modules/compose/compose_api.go42 symbols
modules/ollama/local.go39 symbols
modules/compose/compose_local.go36 symbols
lifecycle.go36 symbols
modules/couchbase/couchbase.go35 symbols
modules/compose/compose.go33 symbols
logconsumer_test.go30 symbols

Dependencies from manifests, versioned

cel.dev/exprv0.25.1 · 1×
cloud.google.com/gov0.112.1 · 1×
cloud.google.com/go/bigqueryv1.59.1 · 1×
cloud.google.com/go/bigtablev1.21.0 · 1×
cloud.google.com/go/compute/metadatav0.9.0 · 1×
cloud.google.com/go/datastorev1.15.0 · 1×
cloud.google.com/go/firestorev1.14.0 · 1×
cloud.google.com/go/longrunningv0.5.5 · 1×
cloud.google.com/go/pubsubv1.36.2 · 1×
cloud.google.com/go/spannerv1.57.0 · 1×
dario.cat/mergov1.0.2 · 1×

Datastores touched

usersCollection · 1 repos
changesCollection · 1 repos
fooCollection · 1 repos
searchCollection · 1 repos
(mysql)Database · 1 repos
(mongodb)Database · 1 repos
mydbDatabase · 1 repos
testcontainerDatabase · 1 repos

For agents

$ claude mcp add testcontainers-go \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact