Description:
MySQLServerMock::MySQLServerMock moves the expected_queries_file constructor parameter into expected_queries_file_ in the initializer list, then prints the moved-from parameter when debug_mode_ is enabled.
After the move, the parameter is valid but its value is unspecified. In practice it prints an empty filename:
```cpp
expected_queries_file_{std::move(expected_queries_file)},
// ...
std::cout << "\n\nExpected SQL queries come from file '"
<< expected_queries_file << "'\n\n"
<< std::flush;
```
How to repeat:
Compile a small program that constructs server_mock::MySQLServerMock with debug_mode=true and a non-empty expected_queries_file.
Observed output: Expected SQL queries come from file ''
Expected output should include the actual filename.
Suggested fix:
Print the member that owns the moved string:
```cpp
std::cout << "\n\nExpected SQL queries come from file '"
<< expected_queries_file_ << "'\n\n"
<< std::flush;
```
Description: MySQLServerMock::MySQLServerMock moves the expected_queries_file constructor parameter into expected_queries_file_ in the initializer list, then prints the moved-from parameter when debug_mode_ is enabled. After the move, the parameter is valid but its value is unspecified. In practice it prints an empty filename: ```cpp expected_queries_file_{std::move(expected_queries_file)}, // ... std::cout << "\n\nExpected SQL queries come from file '" << expected_queries_file << "'\n\n" << std::flush; ``` How to repeat: Compile a small program that constructs server_mock::MySQLServerMock with debug_mode=true and a non-empty expected_queries_file. Observed output: Expected SQL queries come from file '' Expected output should include the actual filename. Suggested fix: Print the member that owns the moved string: ```cpp std::cout << "\n\nExpected SQL queries come from file '" << expected_queries_file_ << "'\n\n" << std::flush; ```