]> git.giacomolli.uk - onechat/blobdiff - whatsapp_inbox_test.go
Check Go names and declarations with revive
[onechat] / whatsapp_inbox_test.go
index 7e9d3a31ff973fc45bd8360059538ac7fe6b2253..6264d1980a021c95dc8169a77629e171035c815a 100644 (file)
@@ -17,7 +17,7 @@ func TestWhatsAppPrivateBatchStartsATurnWithAnEmptyReply(t *testing.T) {
        require.NoError(t, whatsapp.device.Contacts.PutContactName(t.Context(), whatsappTestAna, "Ana", "Ana Souza"))
 
        server := newModelFake(t)
-       server.reply = func(w http.ResponseWriter, call ModelFakeCall) {
+       server.reply = func(w http.ResponseWriter, _ ModelFakeCall) {
                modelWriteEvents(w, modelCompletedEvent([]any{modelMessageItem("")}, 100, 0, 5))
        }
 
@@ -56,7 +56,7 @@ func TestWhatsAppGroupTurns(t *testing.T) {
        }{
                {
                        name: "plain",
-                       message: func(event *events.Message) {
+                       message: func(_ *events.Message) {
                        },
                        line: "12:00 Bruno Lima: Who brings the cake?",
                },