userver-framework / userver

Production-ready C++ Asynchronous Framework with rich functionality
https://userver.tech
Apache License 2.0
2.37k stars 275 forks source link

yaml_config::YamlConfig should reuse the tests of formats #545

Open apolukhin opened 4 months ago

apolukhin commented 4 months ago

yaml_config::YamlConfig has the same interface as formats::*::Value. Reuse the Value tests from https://github.com/userver-framework/userver/tree/develop/universal/src/formats/common/value_test.hpp for yaml_config::YamlConfig the same way as it is done for YAML

https://github.com/userver-framework/userver/blob/4348f91c9251bdfbb596ae68c5c922205b04c8fc/universal/src/formats/yaml/value_test.cpp#L17

Internal ticket: 8685