You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: executor.rs
    path of file: ./repos/fuel-core/crates/fuel-core/src
    
    the code of the file until where you have to start completion: #[allow(clippy::arithmetic_side_effects)]
#[allow(clippy::cast_possible_truncation)]
#[cfg(test)]
mod tests {
    use crate::database::Dat
    
        fn executor_commits_transactions_with_non_zero_coinbase_validation() {
            let price = 1;
            let amount = 10000;
            let limit = 0;
            let gas_price_factor = 1;
            let script = TxBuilder::new(2322u64)
                .script_gas_limit(limit)
                .max_fee_limit(amount)
                .coin_input(AssetId::BASE, 10000)
                .change_output(AssetId::BASE)
                .build()
                .transaction()
                .clone();
            let recipient = Contract::EMPTY_CONTRACT_ID;

            let fee_params = FeeParameters {
                gas_price_factor,
                ..Default::default()
            };
            let config = Config {
                coinbase_recipient: recipient,
                consensus_parameters: ConsensusParameters {
                    fee_params,
                    ..Default::default()
                },
                ..Default::default()
            };
            let database = &mut Database::default();

            database
                .storage::<ContractsRawCode>()
                .insert(&recipient, &[])
                .expect("Should insert coinbase contract");

            let producer = create_executor(database.clone(), config);

            let ExecutionResult {
                block: produced_block,
                skipped_transactions,
                ..
            } = producer
                .execute_without_commit(ExecutionTypes::Production(Components {
                    header_to_produce: PartialBlockHeader::default(),
                    transactions_source: OnceTransactionsSource::new(vec![script.into()]),
                    gas_price: price,
                    gas_limit: u64::MAX,
                }))
                .unwrap()
                .into_result();
            assert!(skipped_transactions.is_empty());
            let produced_txs = produced_block.transactions().to_vec();

            let validator = create_executor(
                Default::default(),
                // Use the same config as block producer
                producer.config.as_ref().clone(),
            );
            let ExecutionResult {
                block: validated_block,
                ..
            } = validator
                .execute_and_commit(
                    ExecutionBlock::Validation(produced_block),
                    Default::default(),
                )
                .unwrap();
            assert_eq!(validated_block.transactions(), produced_txs);
            let (asset_id, amount) = validator
                .database_view_provider
                .latest_view()
                .contract_balances(recipient, None, None)
                .next()
                .unwrap()
                .unwrap();
            assert_eq!(asset_id, AssetId::zeroed());
            assert_ne!(amount, 0);
        }