[][src]Function inflector::suffix::foreignkey::is_foreign_key

pub fn is_foreign_key(test_string: &str) -> bool

Determines if a &str is a foreign_key

    use inflector::suffix::foreignkey::is_foreign_key;
    let mock_string: &str = "Foo bar string that is really really long";
    let asserted_bool: bool = is_foreign_key(mock_string);
    assert!(asserted_bool == false);
    use inflector::suffix::foreignkey::is_foreign_key;
    let mock_string: &str = "foo-bar-string-that-is-really-really-long";
    let asserted_bool: bool = is_foreign_key(mock_string);
    assert!(asserted_bool == false);
    use inflector::suffix::foreignkey::is_foreign_key;
    let mock_string: &str = "FooBarIsAReallyReallyLongString";
    let asserted_bool: bool = is_foreign_key(mock_string);
    assert!(asserted_bool == false);
    use inflector::suffix::foreignkey::is_foreign_key;
    let mock_string: &str = "Foo Bar Is A Really Really Long String";
    let asserted_bool: bool = is_foreign_key(mock_string);
    assert!(asserted_bool == false);
    use inflector::suffix::foreignkey::is_foreign_key;
    let mock_string: &str = "fooBarIsAReallyReallyLongString";
    let asserted_bool: bool = is_foreign_key(mock_string);
    assert!(asserted_bool == false);
    use inflector::suffix::foreignkey::is_foreign_key;
    let mock_string: &str = "foo_bar_string_that_is_really_really_long";
    let asserted_bool: bool = is_foreign_key(mock_string);
    assert!(asserted_bool == false);
    use inflector::suffix::foreignkey::is_foreign_key;
    let mock_string: &str = "foo_bar_string_that_is_really_really_long_id";
    let asserted_bool: bool = is_foreign_key(mock_string);
    assert!(asserted_bool == true);