github.com/cosmos/cosmos-sdk@v0.50.10/testutil/integration/options.go (about) 1 package integration 2 3 // Config is the configuration for the integration app. 4 type Config struct { 5 AutomaticFinalizeBlock bool 6 AutomaticCommit bool 7 } 8 9 // Option is a function that can be used to configure the integration app. 10 type Option func(*Config) 11 12 // WithAutomaticFinalizeBlock calls ABCI finalize block. 13 func WithAutomaticFinalizeBlock() Option { 14 return func(cfg *Config) { 15 cfg.AutomaticFinalizeBlock = true 16 } 17 } 18 19 // WithAutomaticCommit enables automatic commit. 20 // This means that the integration app will automatically commit the state after each msgs. 21 func WithAutomaticCommit() Option { 22 return func(cfg *Config) { 23 cfg.AutomaticCommit = true 24 } 25 }