[mlir-lsp] Add outgoingNotification unit test
Add a unit test exercising `lsp::MessageHanlder::outgoingNotification`. Split off from pull request #90076, as requested.
This commit is contained in:
@@ -118,4 +118,11 @@ TEST_F(TransportInputTest, MethodNotFound) {
|
||||
EXPECT_THAT(getOutput(), HasSubstr("\"error\""));
|
||||
EXPECT_THAT(getOutput(), HasSubstr("\"message\":\"method not found: ack\""));
|
||||
}
|
||||
|
||||
TEST_F(TransportInputTest, OutgoingNotification) {
|
||||
auto notifyFn = getMessageHandler().outgoingNotification<CompletionList>(
|
||||
"outgoing-notification");
|
||||
notifyFn(CompletionList{});
|
||||
EXPECT_THAT(getOutput(), HasSubstr("\"method\":\"outgoing-notification\""));
|
||||
}
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user