openapi_lib_generator/
testing.rs1use crate::generate::utils::ProcessError;
5use std::io::Error as IOError;
6use thiserror::Error;
7
8pub static PETSTORE_YAML: &'static str = include_str!("testing/petstore.yaml");
10pub static TESTING_SPEC_FILE_NAME: &'static str = "petshoppe_test_spec.yaml";
12pub static TEST_SUBDIR_NAME: &'static str = "testing";
14pub static TEST_API_URL: &'static str = "https://www.petshoppe.example";
16pub static TEST_API_NAME: &'static str = "PetShoppe";
18#[derive(Debug, Error)]
20pub enum TestingError {
21 #[error(transparent)]
22 IOError(#[from] IOError),
23 #[error(transparent)]
24 ProcessError(#[from] ProcessError),
25}