tests/search/scripts: add test for symbol only search
An additional test is added for searching for just by symbol name.
For golang/go#44142
Trust: Julie Qiu
Run-TryBot: Julie Qiu
TryBot-Result: kokoro
@@ -11,7 +11,7 @@ FOO github.com/julieqiu/api-demo
FoO github.com/julieqiu/api-demo
Foo github.com/julieqiu/api-demo
-Prefer symbols by popularity, then alphabetically
+Prefer symbols by popularity, then alphabetically, Add
Add
Float.Add math/big
Int.Add math/big
@@ -19,6 +19,21 @@ Rat.Add math/big
Registry.Add github.com/go-openapi/strfmt
Add math/bits
+Prefer symbols by package path, then symbol name
+# TODO: derank fields and methods; log.Logger.Writer should not
+# appear in this list.
+Writer
+Logger.Writer, log
+Writer, archive/tar
+Writer, bufio
+Writer, compress/flat
+Writer, compress/gzip
+Writer, compress/zlib
+Writer, encoding/csv
+Writer, io
+Writer, log
+Writer, archive/zip
+
Search for package path element and symbol.
math Add
Float.Add math/big
