| 90 | #endif |
| 91 | |
| 92 | TString ReInitializeContext(TStringBuf data) { |
| 93 | auto tmpDir = ::GetSystemTempDir(); |
| 94 | auto filename = tmpDir + "/context.json"; |
| 95 | TOFStream stream(filename); |
| 96 | stream.Write(data.data(), data.size()); |
| 97 | stream.Finish(); |
| 98 | |
| 99 | NTesting::TScopedEnvironment contextGuard("YA_TEST_CONTEXT_FILE", filename); |
| 100 | Singleton<NPrivate::TTestEnv>()->ReInitialize(); |
| 101 | |
| 102 | return filename; |
| 103 | } |
| 104 | |
| 105 | TEST(Runtime, GetTestParam) { |
| 106 | TString context = R"json({ |
no test coverage detected