]> git.proxmox.com Git - proxmox.git/commit - proxmox-schema/src/const_regex.rs
api: add test-harness feature
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 8 Jan 2020 09:22:41 +0000 (10:22 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 8 Jan 2020 09:38:30 +0000 (10:38 +0100)
commitb0ef405186651e8ab54e283c44ccc5bb22bee0dd
treeb21fea9fbf5321f3d3b2f4c78427da7f6b2b91e3
parent08e1cf3c2fd66868e71279fb765cbdc16dc39d6c
api: add test-harness feature

If enabled, the Schema type implements Eq and PartialEq for
testing the api macro better.

Note that these implementations don't make all too much
since since they also compare `dyn Fn` types which do not
implement Eq. Since they're also `&'static` they can't
really be runtime closures, so this should be fine, we know
they'll always point to some regular function.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox-api/Cargo.toml
proxmox-api/src/const_regex.rs
proxmox-api/src/router.rs
proxmox-api/src/schema.rs