Add access test
This commit is contained in:
parent
f0124d7620
commit
cb7507278c
16
qbittorrent-web-api-gen/tests/access_impl_types.rs
Normal file
16
qbittorrent-web-api-gen/tests/access_impl_types.rs
Normal 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(())
|
||||
}
|
|
@ -18,4 +18,5 @@ fn tests() {
|
|||
// --- Misc ---
|
||||
t.pass("tests/add_torrent.rs");
|
||||
t.pass("tests/another_struct_name.rs");
|
||||
t.pass("tests/access_impl_types.rs");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user