force 0.2.0

Production-ready Salesforce Platform API client with REST and Bulk API 2.0 support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Havoc property test for SOQL escaping
//!
//! This test uses proptest to hit boundaries for SOQL escape functions.

#[cfg(test)]
mod tests {
    use force::api::escape_soql;
    use proptest::prelude::*;

    proptest! {
        #[test]
        fn test_escape_soql_no_panic(s in "\\PC*") {
            let escaped = escape_soql(&s);
            assert!(escaped.len() >= s.len());
        }
    }
}