From 8c48f33dd0134fe2584bbdddc7f58decba509351 Mon Sep 17 00:00:00 2001 From: fairyhunter13 Date: Tue, 27 Oct 2020 15:55:51 +0700 Subject: [PATCH] Adding space after `args` :art: --- pkg/matchers/config_test.go | 38 ++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/pkg/matchers/config_test.go b/pkg/matchers/config_test.go index 053247ae..d7888e3b 100644 --- a/pkg/matchers/config_test.go +++ b/pkg/matchers/config_test.go @@ -17,21 +17,21 @@ func TestIsLogformat(t *testing.T) { }{ { name: "Invalid log format", - args: args{ + args: args { s: "", }, wantErr: true, }, { name: "Invalid log format: need $ sign", - args: args{ + args: args { s: "remote_addr", }, wantErr: true, }, { name: "Log format is valid", - args: args{ + args: args { s: "$request_method", }, wantErr: false, @@ -62,21 +62,21 @@ func TestIsToken(t *testing.T) { }{ { name: "Invalid token", - args: args{ + args: args { s: "hola", }, wantErr: true, }, { name: "Token is valid", - args: args{ + args: args { s: "xoxp-0123456789-012345678901-y", }, wantErr: false, }, { name: "Token is valid", - args: args{ + args: args { s: "012345678:abcdefghijklmnopqrstuvwxyz012345678", }, wantErr: false, @@ -107,21 +107,21 @@ func TestIsHexcolor(t *testing.T) { }{ { name: "Invalid hex color code", - args: args{ + args: args { s: "\u2713", }, wantErr: true, }, { name: "Invalid hex color code", - args: args{ + args: args { s: "#af01", }, wantErr: true, }, { name: "Hex color code is valid", - args: args{ + args: args { s: "#F00000", }, wantErr: false, @@ -152,35 +152,35 @@ func TestIsParseMode(t *testing.T) { }{ { name: "Invalid Telegram parse_mode, only accept: Markdown, MarkdownV2 & HTML (case-sensitive)", - args: args{ + args: args { s: "Latex", }, wantErr: true, }, { name: "Telegram parse_mode is valid", - args: args{ + args: args { s: "Markdown", }, wantErr: false, }, { name: "Invalid parse_mode, only accept: Markdown, MarkdownV2 & HTML (case-sensitive)", - args: args{ + args: args { s: "html", }, wantErr: true, }, { name: "parse_mode is valid", - args: args{ + args: args { s: "MarkdownV2", }, wantErr: false, }, { name: "parse_mode is valid", - args: args{ + args: args { s: "HTML", }, wantErr: false, @@ -211,21 +211,21 @@ func TestIsChannel(t *testing.T) { }{ { name: "Invalid Slack channel ID", - args: args{ + args: args { s: "hola", }, wantErr: true, }, { name: "Invalid Slack channel ID", - args: args{ + args: args { s: "kitabisa13", }, wantErr: true, }, { name: "Slack channel ID is valid", - args: args{ + args: args { s: "KITABISA13", }, wantErr: false, @@ -256,14 +256,14 @@ func TestIsChatID(t *testing.T) { }{ { name: "Invalid Telegram chat_id", - args: args{ + args: args { s: "hola", }, wantErr: true, }, { name: "Telegram chat_id is valid", - args: args{ + args: args { s: "12345678", }, wantErr: false,