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: test_basic_block.rs
    path of file: ./repos/inkwell/tests/all
    
    the code of the file until where you have to start completion: use inkwell::context::Context;
use inkwell::values::InstructionOpcode;

#[test]
fn test_basic_block_ordering() {
    let context = Context::create();
    le
    
fn test_get_basic_blocks() {
    let context = Context::create();
    let module = context.create_module("test");

    let bool_type = context.bool_type();
    let fn_type = bool_type.fn_type(&[], false);

    let function = module.add_function("testing", fn_type, None);

    assert_eq!(function.get_name().to_str(), Ok("testing"));
    assert_eq!(fn_type.get_return_type().unwrap().into_int_type().get_bit_width(), 1);

    assert!(function.get_last_basic_block().is_none());
    assert_eq!(function.get_basic_blocks().len(), 0);
    assert_eq!(function.get_basic_block_iter().count(), 0);

    let basic_block = context.append_basic_block(function, "entry");

    let last_basic_block = function
        .get_last_basic_block()
        .expect("Did not find expected basic block");

    assert_eq!(last_basic_block, basic_block);

    for basic_blocks in [function.get_basic_blocks(), function.get_basic_block_iter().collect()] {
        assert_eq!(basic_blocks.len(), 1);
        assert_eq!(basic_blocks[0], basic_block);
    }
}