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: iterators.rs
    path of file: ./repos/boa/core/engine/src/tests
    
    the code of the file until where you have to start completion: use indoc::indoc;

use crate::{run_test_actions, TestAction};

#[test]
fn iterator_close_in_continue_before_jobs() {
    run_test_actions([
        TestAction::run_harness(),
        TestAction::run(indoc! {r#"
            var actual = [];

            var iter = {
                [Symbol.iterator]() {
                    return this;
                },
                next() {
                    actual.push("call next");
                    return {
                        done: false,
                    };
                },
                get return() {
                    actual.push("get return");
                    return function () {
                        actual.push("return call");
                        return {
                            done: true
                        }
                    }
                }
            };

            Promise.resolve(0)
                .then(() => actual.push("tick 1"))
                .then(() => actual.push("tick 2"));

            void async function f() {
                actual.push("async fn start");
                let count = 0;
                loop: while (count === 0) {
                    count++;
                    for (_ of iter) {
                        continue loop;
                    }
                }
                actual.push("async fn end");
            }();
        "#}),
        #[allow(clippy::redundant_closure_for_method_calls)]
        TestAction::inspect_context(|ctx| ctx.run_jobs()),
        TestAction::assert(indoc! {r#"
            arrayEquals(
                actual,
                [
                    "async fn start",
                    "call next",
                    "get return",
                    "return call",
                    "async fn end",
                    "tick 1",
                    "tick 2",
                ]
            )
            "#}),
    ]);
}

#[test]
fn a
    
fn async_iterator_close_in_continue_is_awaited() {
    run_test_actions([
        TestAction::run_harness(),
        TestAction::run(indoc! {r#"
            var actual = [];

            var asyncIter = {
                [Symbol.asyncIterator]() {
                    return this;
                },
                next() {
                    actual.push("async call next");
                    return {
                        done: false,
                    };
                },
                get return() {
                    actual.push("get async return");
                    return function () {
                        actual.push("async return call");
                        return {
                            done: true
                        };
                    }
                }
            };

            Promise.resolve(0)
                .then(() => actual.push("tick 1"))
                .then(() => actual.push("tick 2"))
                .then(() => actual.push("tick 3"));

            void async function f() {
                actual.push("async fn start");
                let count = 0;
                loop: while (count === 0) {
                    count++;
                    for await (__ of asyncIter) {
                        continue loop;
                    }
                }
                actual.push("async fn end");
            }();
        "#}),
        #[allow(clippy::redundant_closure_for_method_calls)]
        TestAction::inspect_context(|ctx| ctx.run_jobs()),
        TestAction::assert(indoc! {r#"
            arrayEquals(
                actual,
                [
                    "async fn start",
                    "async call next",
                    "tick 1",
                    "get async return",
                    "async return call",
                    "tick 2",
                    "async fn end",
                    "tick 3"
                ]
            )
        "#}),
    ]);
}