aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/resource/ut
diff options
context:
space:
mode:
authorm-milkin <m-milkin@yandex-team.com>2023-03-24 15:34:13 +0300
committerm-milkin <m-milkin@yandex-team.com>2023-03-24 15:34:13 +0300
commit387c914d75e04773da90dcf623982a47909c19d2 (patch)
tree2aee2c5f92c70eac1e34206307d910c8c360f585 /library/cpp/resource/ut
parentf8d946ba7430c3864f0a97d42fa295d19ed40a3e (diff)
downloadydb-387c914d75e04773da90dcf623982a47909c19d2.tar.gz
Filter searcher props by black list. Add NResource::Has()
Diffstat (limited to 'library/cpp/resource/ut')
-rw-r--r--library/cpp/resource/ut/resource_ut.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/library/cpp/resource/ut/resource_ut.cpp b/library/cpp/resource/ut/resource_ut.cpp
index b6fa8e4df3..67cf77c571 100644
--- a/library/cpp/resource/ut/resource_ut.cpp
+++ b/library/cpp/resource/ut/resource_ut.cpp
@@ -5,4 +5,9 @@ Y_UNIT_TEST_SUITE(TestResource) {
Y_UNIT_TEST(Test1) {
UNIT_ASSERT_VALUES_EQUAL(NResource::Find("/x"), "na gorshke sidel korol\n");
}
+
+ Y_UNIT_TEST(TestHasFunc) {
+ UNIT_ASSERT_VALUES_EQUAL(NResource::Has("/x"), true);
+ UNIT_ASSERT_VALUES_EQUAL(NResource::Has("/y"), false);
+ }
}