Add access test

This commit is contained in:
Joel Wachsler 2022-07-12 10:45:19 +00:00
parent f0124d7620
commit cb7507278c
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,16 @@
use anyhow::Result;
mod foo {
use qbittorrent_web_api_gen::QBittorrentApiGen;
#[allow(dead_code)]
#[derive(QBittorrentApiGen)]
struct Api {}
}
#[tokio::main]
async fn main() -> Result<()> {
let _ = foo::api_impl::ApplicationPreferencesBittorrentProtocol::TCP;
Ok(())
}

View File

@ -18,4 +18,5 @@ fn tests() {
// --- Misc --- // --- Misc ---
t.pass("tests/add_torrent.rs"); t.pass("tests/add_torrent.rs");
t.pass("tests/another_struct_name.rs"); t.pass("tests/another_struct_name.rs");
t.pass("tests/access_impl_types.rs");
} }