Skip to content
Snippets Groups Projects
Commit 391f6391 authored by Josh Brooks's avatar Josh Brooks
Browse files

Attempt #2 to bump coverage

parent 44da6ce9
No related branches found
No related tags found
No related merge requests found
......@@ -145,6 +145,7 @@ func TestInvalidRegistrationCommands(t *testing.T) {
"REGISTER EMAIL garbage this is a garbage",
"REGISTER EMAIL rick@elixxir 8oKh7TYG4KxQcBAymoXPBHSD/uga9pX3Mn/jKh" +
"vcD8M=",
}
msg := NewMessage(msgs[0], cmixproto.Type_UDB_PUSH_KEY)
......
......@@ -26,6 +26,26 @@ func TestSearchHappyPath(t *testing.T) {
sl.Hear(msg, false)
}
func TestSearch_InvalidArgs(t *testing.T) {
// Load a user
TestRegisterHappyPath(t)
// NOTE: This is kind of hard, since we can't see the response and search
// does not modify data we can check
// TODO: Monkeypatch send so we can verify? -- this is tested in integration,
// so.. low priority.
msgs := []string{
"EMAIL rick@elixxir.io",
"GETKEY MORETHAN 1ARG",
}
msg := NewMessage(msgs[0], cmixproto.Type_UDB_SEARCH)
sl.Hear(msg, false)
msg = NewMessage(msgs[1], cmixproto.Type_UDB_SEARCH)
sl.Hear(msg,false)
}
// Test invalid search type
func TestSearch_Invalid_Type(t *testing.T) {
fingerprint := "8oKh7TYG4KxQcBAymoXPBHSD/uga9pX3Mn/jKhvcD8M="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment