mirror of
https://github.com/php-win-ext/grpc.git
synced 2026-03-24 09:02:15 +01:00
Closes #40915 COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/40915 from rishesh007:add_sanity_checks 56a3c329fbf4ea6df115573230e05c14b55811df PiperOrigin-RevId: 820056643
32 lines
1008 B
C++
32 lines
1008 B
C++
// Copyright 2025 gRPC authors.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
#include "test/cpp/sleuth/tool_test.h"
|
|
#include "test/cpp/sleuth/version.h"
|
|
#include "gtest/gtest.h"
|
|
#include "absl/strings/str_cat.h"
|
|
|
|
namespace grpc_sleuth {
|
|
namespace {
|
|
|
|
TEST(InfoToolTest, PrintVersion) {
|
|
auto result = TestTool("info", {});
|
|
ASSERT_TRUE(result.ok());
|
|
ASSERT_EQ(result.value(),
|
|
absl::StrCat("Sleuth version ", kSleuthVersion, "\n"));
|
|
}
|
|
|
|
} // namespace
|
|
} // namespace grpc_sleuth
|