Rename "compat" into "disable-validation", to insist on it breaking some guarantees.
This commit is contained in:
parent
8b15728bb2
commit
c2b7e19378
18 changed files with 39 additions and 39 deletions
|
|
@ -20,7 +20,7 @@ impl IqGetPayload for Ping {}
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
#[cfg(not(feature = "compat"))]
|
||||
#[cfg(not(feature = "disable-validation"))]
|
||||
use crate::error::Error;
|
||||
use minidom::Element;
|
||||
use try_from::TryFrom;
|
||||
|
|
@ -43,7 +43,7 @@ mod tests {
|
|||
assert_eq!(elem1, elem2);
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "compat"))]
|
||||
#[cfg(not(feature = "disable-validation"))]
|
||||
#[test]
|
||||
fn test_invalid() {
|
||||
let elem: Element = "<ping xmlns='urn:xmpp:ping'><coucou/></ping>"
|
||||
|
|
@ -57,7 +57,7 @@ mod tests {
|
|||
assert_eq!(message, "Unknown child in ping element.");
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "compat"))]
|
||||
#[cfg(not(feature = "disable-validation"))]
|
||||
#[test]
|
||||
fn test_invalid_attribute() {
|
||||
let elem: Element = "<ping xmlns='urn:xmpp:ping' coucou=''/>".parse().unwrap();
|
||||
|
|
|
|||
Loading…
Reference in a new issue