We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
outgoingNotification
1 parent 8dcb90b commit ba1b52eCopy full SHA for ba1b52e
mlir/unittests/Tools/lsp-server-support/Transport.cpp
@@ -118,4 +118,11 @@ TEST_F(TransportInputTest, MethodNotFound) {
118
EXPECT_THAT(getOutput(), HasSubstr("\"error\""));
119
EXPECT_THAT(getOutput(), HasSubstr("\"message\":\"method not found: ack\""));
120
}
121
+
122
+TEST_F(TransportInputTest, OutgoingNotification) {
123
+ auto notifyFn = getMessageHandler().outgoingNotification<CompletionList>(
124
+ "outgoing-notification");
125
+ notifyFn(CompletionList{});
126
+ EXPECT_THAT(getOutput(), HasSubstr("\"method\":\"outgoing-notification\""));
127
+}
128
} // namespace
0 commit comments