Add unit tests. * src/engine/imap/transport/imap-deserializer.vala (Deserialiser): Add a new EOL even handler to the FAILED state that is the one place where the deserialize_failure() signal is fired and that any existing params are reset. (Deserialiser::push_line): Remove signal calls and unused return value. Don't use EOS to detect NUL to avoid some confusion. Ensure an EOL event is always fired so that the FAILED EOF handler is always run. (Deserialiser::push_data): Remove signal calls and unused return value. (Deserialiser::flush_params): Don't bother returning a state, since we now always know what the next one should be when calling it. Only trigger the parameters_ready() signal if there is a valid parameter. Make logging consistent with the rest of the class. (Deserialiser::reset_params): New common method for resetting any existing deserialised message. (Deserialiser::on_literal_char): Minor tidy up. (Deserialiser::on_eos): Ensure that any existing param is sent on EOS so that any BYE+EOS sent by the server is picked up. |
||
|---|---|---|
| .. | ||
| client | ||
| engine | ||
| js | ||
| CMakeLists.txt | ||
| main.vala | ||
| testcase.vala | ||