Mercurial > hg > orthanc
changeset 6146:9db300bcf873 attach-custom-data
test overwriting in key-value store
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 30 May 2025 16:22:49 +0200 |
parents | 055addebab2a |
children | 4d5fad701a17 |
files | OrthancServer/UnitTestsSources/ServerIndexTests.cpp |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/UnitTestsSources/ServerIndexTests.cpp Fri May 30 15:38:47 2025 +0200 +++ b/OrthancServer/UnitTestsSources/ServerIndexTests.cpp Fri May 30 16:22:49 2025 +0200 @@ -1207,6 +1207,10 @@ ASSERT_TRUE(op.GetKeyValue(s, "test", "hello3")); ASSERT_EQ("world3", s); ASSERT_FALSE(op.GetKeyValue(s, "test", "hello2")); + ASSERT_TRUE(op.GetKeyValue(s, "test", "hello")); ASSERT_EQ("world", s); + op.StoreKeyValue("test", "hello", "overwritten"); + ASSERT_TRUE(op.GetKeyValue(s, "test", "hello")); ASSERT_EQ("overwritten", s); + op.DeleteKeyValue("test", "nope"); op.DeleteKeyValue("test", "hello");