| 40 | } |
| 41 | |
| 42 | int mainEntryExampleReadBuffer(int, char **) |
| 43 | { |
| 44 | { |
| 45 | std::string s = "-123456 123.456 вася pe\\ttya\t'\\'xyz\\\\'"; |
| 46 | DB::ReadBufferFromString in(s); |
| 47 | if (readAndPrint(in)) |
| 48 | std::cout << "readAndPrint from ReadBufferFromString failed" << std::endl; |
| 49 | } |
| 50 | |
| 51 | |
| 52 | std::shared_ptr<DB::ReadBufferFromOwnString> in; |
| 53 | { |
| 54 | std::string s = "-123456 123.456 вася pe\\ttya\t'\\'xyz\\\\'"; |
| 55 | in = std::make_shared<DB::ReadBufferFromOwnString>(s); |
| 56 | } |
| 57 | if (readAndPrint(*in)) |
| 58 | std::cout << "readAndPrint from ReadBufferFromOwnString failed" << std::endl; |
| 59 | |
| 60 | return 0; |
| 61 | } |
nothing calls this directly
no test coverage detected