@@ -75,10 +75,15 @@ func TestParsePSMessage(t *testing.T) {
{
inMessage: "Uploaded patch set 5: Run-TryBot+1.",
inRevisionNumber: 5,
wantBody: "",
},
{
inMessage: "Uploaded patch set 6.\nThis Gerrit CL corresponds to GitHub PR golang/tools#123.\n\nAuthor: Foo Bar \u003cfoo@bar.com\u003e",
inRevisionNumber: 6,
wantBody: "This Gerrit CL corresponds to GitHub PR golang/tools#123.\n\nAuthor: Foo Bar \u003cfoo@bar.com\u003e",
},
{
inMessage: "something unexpected",
inRevisionNumber: 3,
wantError: true,
},