/usr/share/gocode/src/github.com/jdkato/prose/summarize/easy_test.go is in golang-github-jdkato-prose-dev 1.1.0+git20171031.e27abfd-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | package summarize
import (
"encoding/json"
"path/filepath"
"testing"
"github.com/jdkato/prose/internal/util"
)
func BenchmarkEasyWordsLookup(b *testing.B) {
cases := util.ReadDataFile(filepath.Join(testdata, "syllables.json"))
tests := make(map[string]int)
util.CheckError(json.Unmarshal(cases, &tests))
for n := 0; n < b.N; n++ {
for word := range tests {
util.StringInSlice(word, easyWords)
}
}
}
|