MCPcopy Create free account
hub / github.com/619dev/minghe / test_extract_method

Function test_extract_method

src/sip/parser.rs:852–862  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

850 #[test]
851 fn test_extract_extension_sips() {
852 assert_eq!(
853 extract_extension("sips:1002@example.com"),
854 Some("1002".to_string())
855 );
856 }
857
858 #[test]
859 fn test_extract_extension_case_insensitive_scheme() {
860 assert_eq!(
861 extract_extension("SIP:1002@example.com"),
862 Some("1002".to_string())
863 );
864 assert_eq!(
865 extract_extension("SIPS:1003@example.com"),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected