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: read.rs
    path of file: ./repos/opendal/core/src/raw/tests
    
    the code of the file until where you have to start completion: // Licensed to the Apache Software Foundation (ASF) under one
// or more co
    
    pub async fn check(&mut self, mut r: Reader, actions: &[ReadAction]) {
        use oio::ReadExt;

        for action in actions {
            match action {
                ReadAction::Read(size) => {
                    let mut buf = vec![0; *size];
                    let n = r.read(&mut buf).await.expect("read must success");
                    self.check_read(*size, &buf[..n]);
                }

                ReadAction::Seek(pos) => {
                    let res = r.seek(*pos).await;
                    self.check_seek(*pos, res);
                }

                ReadAction::Next => {
                    let res = r.next().await.transpose().expect("next must success");
                    self.check_next(res);
                }
            }
        }
    }