MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / main

Function main

tests/unittests/test_server_config.cpp:145–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143 require(rejected, "unknown default preset name is rejected");
144}
145
146void test_duplicate_json_keys_are_rejected() {
147 bool rejected = false;
148 try {
149 (void) engine::io::json::parse(R"JSON({
150 "voice_presets": {
151 "cosette": {
152 "voice_id": "cosette"
153 }
154 },
155 "voice_presets": {
156 "anna": {
157 "voice_id": "anna"
158 }
159 }

Callers

nothing calls this directly

Tested by

no test coverage detected