Show similar library names in lib search (#598)
* Show similar library names in lib search * make similarity threshold for lib search a package variable * Add library search tests * Redo name asserts in TestSearchLibrary Just check that the library names have "Test" in them instead of checking the names at each index, which won't always be the same
Showing
commands/lib/search_test.go
0 → 100644
... | ... | @@ -19,6 +19,7 @@ require ( |
github.com/gofrs/uuid v3.2.0+incompatible | ||
github.com/golang/protobuf v1.3.3 | ||
github.com/h2non/filetype v1.0.8 // indirect | ||
github.com/imjasonmiller/godice v0.1.2 | ||
github.com/juju/errors v0.0.0-20181118221551-089d3ea4e4d5 // indirect | ||
github.com/juju/loggo v0.0.0-20190526231331-6e530bcce5d8 // indirect | ||
github.com/juju/testing v0.0.0-20190429233213-dfc56b8c09fc // indirect | ||
... | ... |
... | ... | @@ -85,6 +85,8 @@ github.com/h2non/filetype v1.0.8 h1:le8gpf+FQA0/DlDABbtisA1KiTS0Xi+YSC/E8yY3Y14= |
github.com/h2non/filetype v1.0.8/go.mod h1:isekKqOuhMj+s/7r3rIeTErIRy4Rub5uBWHfvMusLMU= | ||
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= | ||
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= | ||
github.com/imjasonmiller/godice v0.1.2 h1:T1/sW/HoDzFeuwzOOuQjmeMELz9CzZ53I2CnD+08zD4= | ||
github.com/imjasonmiller/godice v0.1.2/go.mod h1:8cTkdnVI+NglU2d6sv+ilYcNaJ5VSTBwvMbFULJd/QQ= | ||
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= | ||
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= | ||
github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= | ||
... | ... |
Please register or sign in to comment