13 lines · 382 B · Rust
RawDownload
use std::path::PathBuf; pub type Error = Box<dyn std::error::Error>;pub type Result<T = ()> = std::result::Result<T, Error>; pub fn fixture_bytes(path: &str) -> Vec<u8> {    fn fixture_path(path: &str) -> PathBuf {        PathBuf::from("tests").join("fixtures").join(path)    }    std::fs::read(fixture_path(path)).expect("fixture to be present and readable")} mod client;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t