test/src/storage/trie/trie_storage/trie_storage_backend_test.cpp
TEST_F(TrieDbBackendTest, Put) {
  Buffer prefixed{kNodePrefix};
  prefixed.put("abc"_buf);
  EXPECT_CALL(*storage, put_rv(prefixed, "123"_buf))
      .WillOnce(Return(outcome::success()));
  EXPECT_OUTCOME_TRUE_1(backend.put("abc"_buf, "123"_buf));
}
/**
 * @given trie backend
 * @when put a value to it
 * @then it puts a prefixed value to the storage
 */
@given trie backend
@when put a value to it
@then it puts a prefixed value to the storage
@given trie backend @when put a value to it @then it puts a prefixed value to the storage
TEST_F(TrieDbBackendTest, Put) {
  Buffer prefixed{kNodePrefix};
  prefixed.put("abc"_buf);
  EXPECT_CALL(*storage, put_rv(prefixed, "123"_buf))
      .WillOnce(Return(outcome::success()));
  EXPECT_OUTCOME_TRUE_1(backend.put("abc"_buf, "123"_buf));
}
TEST_F ( TrieDbBackendTest , Put ) { Buffer prefixed { kNodePrefix } ; prefixed . put ( " " _buf ) ; EXPECT_CALL ( * storage , put_rv ( prefixed , " " _buf ) ) . WillOnce ( Return ( outcome :: success ( ) ) ) ; EXPECT_OUTCOME_TRUE_1 ( backend . put ( " " _buf , " " _buf ) ) ; }
@given trie backend
 @when put a value to it
 @then it puts a prefixed value to the storage
@given trie backend @when put a value to it @then it puts a prefixed value to the storage