Skip to content

Commit

Permalink
Add tests for `FlightClient::{list_flights, list_actions, do_action, …
Browse files Browse the repository at this point in the history
…get_schema}` (#3463)
  • Loading branch information
alamb authored Jan 5, 2023
1 parent 4f44c2d commit 2d2d0a3
Show file tree
Hide file tree
Showing 3 changed files with 466 additions and 32 deletions.
7 changes: 7 additions & 0 deletions arrow-flight/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,13 @@ impl Action {
}
}

impl Result {
/// Create a new Result with the specified body
pub fn new(body: impl Into<Bytes>) -> Self {
Self { body: body.into() }
}
}

#[cfg(test)]
mod tests {
use super::*;
Expand Down
Loading

0 comments on commit 2d2d0a3

Please sign in to comment.