- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestTypeByExtension (0.46 sec)
-
src/mime/type_test.go
func setType(ext, typ string) { if !strings.HasPrefix(ext, ".") { panic("missing leading dot") } if err := setExtensionType(ext, typ); err != nil { panic("bad test data: " + err.Error()) } } func TestTypeByExtension(t *testing.T) { once = sync.Once{} // initMimeForTests returns the platform-specific extension => // type tests. On Unix and Plan 9, this also tests the parsing
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 08 21:09:03 UTC 2022 - 4.9K bytes - Viewed (0)