Function cruet::suffix::foreign_key::is_foreign_key
source · pub fn is_foreign_key(test_string: &str) -> bool
Expand description
Determines if a &str
is a foreign_key
use cruet::suffix::foreign_key::is_foreign_key;
assert!(!is_foreign_key("Foo bar string that is really really long"));
assert!(!is_foreign_key("foo-bar-string-that-is-really-really-long"));
assert!(!is_foreign_key("FooBarIsAReallyReallyLongString"));
assert!(!is_foreign_key("Foo Bar Is A Really Really Long String"));
assert!(!is_foreign_key("fooBarIsAReallyReallyLongString"));
assert!(!is_foreign_key("foo_bar_string_that_is_really_really_long"));
assert!(is_foreign_key("foo_bar_string_that_is_really_really_long_id"));