Exploit databaseDownload repository ZIP
GH-2bd581c0b0c43b5368c3d361b9c6ce91
filosottile/heartbleed
Sources for CVE-2014-0160
106 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files2
filosottile/heartbleedRevision 4a3332ca1dc0
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
server/_third_party/github.com/smugmug/godynamo/types/itemcollectionmetrics/itemcollectionmetrics_test.go
Go · 599 bytespackage itemcollectionmetrics
import (
"encoding/json"
"fmt"
"testing"
)
func TestExpectedMarshal(t *testing.T) {
s := []string{
`{"ItemCollectionKey":{"AttributeValue":{"S":"a string"}},"SizeEstimateRangeGB":[0,10]}`,
}
for _, v := range s {
var a ItemCollectionMetrics
um_err := json.Unmarshal([]byte(v), &a)
if um_err != nil {
_ = fmt.Sprintf("%v\n", um_err)
t.Errorf("cannot unmarshal\n")
}
json, jerr := json.Marshal(a)
if jerr != nil {
_ = fmt.Sprintf("%v\n", jerr)
t.Errorf("cannot marshal\n")
}
_ = fmt.Sprintf("IN:%v, OUT:%v\n", v, string(json))
}
}