| 1 | #![allow(non_upper_case_globals)] |
| 2 | #![allow(non_camel_case_types)] |
| 3 | #![allow(non_snake_case)] |
| 4 | |
| 5 | includerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/include!!(concatrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/concat!!(envrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/env!!("OUT_DIR"), "/bindings.rs")); |
| 6 | |
| 7 | #[cfg(test)] |
| 8 | mod testsrust-analyzer cargo leptonica-sys 0.4.9 tests/ { |
| 9 | use superrust-analyzer cargo leptonica-sys 0.4.9 crate/::{pixFreeDatarust-analyzer cargo leptonica-sys 0.4.9 pixFreeData()., pixGetHeightrust-analyzer cargo leptonica-sys 0.4.9 pixGetHeight()., pixGetWidthrust-analyzer cargo leptonica-sys 0.4.9 pixGetWidth()., pixReadrust-analyzer cargo leptonica-sys 0.4.9 pixRead().}; |
| 10 | |
| 11 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 12 | fn image_sizerust-analyzer cargo leptonica-sys 0.4.9 tests/image_size().() { |
| 13 | unsafe { |
| 14 | let image = pixReadrust-analyzer cargo leptonica-sys 0.4.9 pixRead().(b"../test image.png\0".as_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]as_ptr().().castrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/const_ptr/impl#[`*const T`]cast().()); |
| 15 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(pixGetWidthrust-analyzer cargo leptonica-sys 0.4.9 pixGetWidth().(image), 1000); |
| 16 | assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(pixGetHeightrust-analyzer cargo leptonica-sys 0.4.9 pixGetHeight().(image), 500); |
| 17 | pixFreeDatarust-analyzer cargo leptonica-sys 0.4.9 pixFreeData().(image); |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 22 | #[allow(path_statements)] |
| 23 | fn defined_constantsrust-analyzer cargo leptonica-sys 0.4.9 tests/defined_constants().() { |
| 24 | superrust-analyzer cargo leptonica-sys 0.4.9 crate/::IFF_UNKNOWNrust-analyzer cargo leptonica-sys 0.4.9 IFF_UNKNOWN.; |
| 25 | superrust-analyzer cargo leptonica-sys 0.4.9 crate/::IFF_BMPrust-analyzer cargo leptonica-sys 0.4.9 IFF_BMP.; |
| 26 | } |
| 27 | |
| 28 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 29 | #[allow(path_statements)] |
| 30 | fn defined_functionsrust-analyzer cargo leptonica-sys 0.4.9 tests/defined_functions().() { |
| 31 | superrust-analyzer cargo leptonica-sys 0.4.9 crate/::boxCreateValidrust-analyzer cargo leptonica-sys 0.4.9 boxCreateValid().; |
| 32 | superrust-analyzer cargo leptonica-sys 0.4.9 crate/::boxDestroyrust-analyzer cargo leptonica-sys 0.4.9 boxDestroy().; |
| 33 | superrust-analyzer cargo leptonica-sys 0.4.9 crate/::boxGetGeometryrust-analyzer cargo leptonica-sys 0.4.9 boxGetGeometry().; |
| 34 | } |
| 35 | } |