MCPcopy Create free account
hub / github.com/emwalker/digraph / is_pdf

Function is_pdf

backend/src/http/repo_url.rs:210–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

208
209 #[test]
210 fn is_pdf() {
211 let url = parse("https://www.dni.gov//Prelimary-Assessment-UAP-20210625.pdf?q=something");
212 assert!(url.is_pdf());
213
214 let url = parse("https://www.dni.gov//Prelimary-Assessment-UAP-20210625.html?q=something");
215 assert!(!url.is_pdf());
216 }
217
218 #[test]
219 fn avoid_requests() {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected