Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MG-RAST/Shock
/ IsValidUncompress
Function
IsValidUncompress
shock-server/node/archive/archive.go:48–55 ·
view source on GitHub ↗
(a string)
Source
from the content-addressed store, hash-verified
46
}
47
48
func
IsValidUncompress(a string) bool {
49
for
_, b :=
range
validUncompress {
50
if
b == a {
51
return
true
52
}
53
}
54
return
false
55
}
56
57
func
IsValidCompress(a string) bool {
58
for
_, b :=
range
validCompress {
Callers
1
UncompressReader
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected