func NewEnvironment(tb testing.TB, version content.FormatVersion, opts ...Options) (context.Context, *Environment) {
	tb.Helper()

	ctx := testlogging.Context(tb)

	var env Environment

	env.setup(tb, version, opts...)

	tb.Cleanup(func() {
		env.Close(ctx, tb)
	})

	return ctx, &env
}
// NewEnvironment creates a new repository testing environment and ensures its cleanup at the end of the test.
NewEnvironment creates a new repository testing environment and ensures its cleanup at the end of the test.
// NewEnvironment creates a new repository testing environment and ensures its cleanup at the end of the test .
func NewEnvironment(tb testing.TB, version content.FormatVersion, opts ...Options) (context.Context, *Environment) {
	tb.Helper()
	ctx := testlogging.Context(tb)
	var env Environment
	env.setup(tb, version, opts...)
	tb.Cleanup(func() {
		env.Close(ctx, tb)
	})
	return ctx, &env
}
func NewEnvironment ( tb testing . TB , version content . FormatVersion , opts ... Options ) ( context . Context , * Environment ) { tb . Helper ( ) ctx := testlogging . Context ( tb ) var env Environment env . setup ( tb , version , opts ... ) tb . Cleanup ( func ( ) { env . Close ( ctx , tb ) } ) return ctx , & env }
NewEnvironment creates a new repository testing environment and ensures its cleanup at the end of the test.
NewEnvironment creates a new repository testing environment and ensures its cleanup at the end of the test .