@@ -50,7 +50,7 @@ Q1QWaigUQdpFfNCrqwJBANLgWaJV722PhQXOCmR+INvZ7ksIhJVcq/x1l2BYOLw2
5050QsncVExbMiPa9Oclo5qLuTosS8qwHm1MJEytp3/SkB8=
5151-----END RSA PRIVATE KEY-----`
5252
53- func Test_compareSecret (t * testing.T ) {
53+ func TestCompareSecret (t * testing.T ) {
5454 type args struct {
5555 incomingSecret string
5656 secretValue string
@@ -79,14 +79,12 @@ func Test_compareSecret(t *testing.T) {
7979 }
8080 for _ , tt := range tests {
8181 t .Run (tt .name , func (t * testing.T ) {
82- if got := compareSecret (tt .args .incomingSecret , tt .args .secretValue ); got != tt .want {
83- t .Errorf ("compareSecret() = %v, want %v" , got , tt .want )
84- }
82+ assert .Equal (t , compareSecret (tt .args .incomingSecret , tt .args .secretValue ), tt .want )
8583 })
8684 }
8785}
8886
89- func Test_listener_detectIncoming (t * testing.T ) {
87+ func TestListenerDetectIncoming (t * testing.T ) {
9088 const goodURL = "https://matched/by/incoming"
9189 envRemove := env .PatchAll (t , map [string ]string {"SYSTEM_NAMESPACE" : "pipelinesascode" })
9290 defer envRemove ()
@@ -855,7 +853,7 @@ func Test_listener_detectIncoming(t *testing.T) {
855853 }
856854}
857855
858- func Test_listener_processIncoming (t * testing.T ) {
856+ func TestListenerProcessIncoming (t * testing.T ) {
859857 tests := []struct {
860858 name string
861859 want provider.Interface
@@ -1081,7 +1079,7 @@ func TestApplyIncomingParams(t *testing.T) {
10811079 }
10821080}
10831081
1084- func Test_detectIncoming_legacy_warning (t * testing.T ) {
1082+ func TestDetectIncomingLegacyWarning (t * testing.T ) {
10851083 ctx , _ := rtesting .SetupFakeContext (t )
10861084 testNamespace := & corev1.Namespace {
10871085 ObjectMeta : metav1.ObjectMeta {
@@ -1180,7 +1178,7 @@ func Test_detectIncoming_legacy_warning(t *testing.T) {
11801178 }
11811179}
11821180
1183- func Test_detectIncoming_body_params_are_parsed (t * testing.T ) {
1181+ func TestDetectIncomingBodyParamsAreParsed (t * testing.T ) {
11841182 ctx , _ := rtesting .SetupFakeContext (t )
11851183 testNamespace := & corev1.Namespace {
11861184 ObjectMeta : metav1.ObjectMeta {
@@ -1237,7 +1235,7 @@ func Test_detectIncoming_body_params_are_parsed(t *testing.T) {
12371235 assert .Assert (t , got )
12381236}
12391237
1240- func Test_parseIncomingPayload (t * testing.T ) {
1238+ func TestParseIncomingPayload (t * testing.T ) {
12411239 tests := []struct {
12421240 name string
12431241 method string
0 commit comments