Add CI quality gate

This commit is contained in:
Mikhail Kilin committed 2026-05-17 18:55:36 +03:00
1 parent 2d4c1906d5
commit 51e9cf5c10
13 files changed
+50 -60

No files matched your search

-2
View File
@@ -56,7 +56,6 @@ fn snapshot_chat_with_unread_count() {
#[test]
fn test_incoming_message_shows_unread_badge() {
// Создаём чат БЕЗ непрочитанных сообщений
let chat = TestChatBuilder::new("Friend", 999)
.unread_count(0)
@@ -485,7 +484,6 @@ fn snapshot_chat_search_mode() {
#[test]
fn snapshot_chat_with_online_status() {
let chat = TestChatBuilder::new("Alice", 123)
.last_message("Hey there!")
.build();
+2 -8
View File
@@ -144,19 +144,13 @@ impl TestAppBuilder {
/// Добавить сообщение для чата
pub fn with_message(mut self, chat_id: i64, message: MessageInfo) -> Self {
self.messages
.entry(chat_id)
.or_default()
.push(message);
self.messages.entry(chat_id).or_default().push(message);
self
}
/// Добавить несколько сообщений для чата
pub fn with_messages(mut self, chat_id: i64, messages: Vec<MessageInfo>) -> Self {
self.messages
.entry(chat_id)
.or_default()
.extend(messages);
self.messages.entry(chat_id).or_default().extend(messages);
self
}