8000 Merge pull request #1591 from pjbgf/fix-fuzz · go-git/go-git@24d6c16 · GitHub
[go: up one dir, main page]

Skip to content

Commit 24d6c16

Browse files
authored
Merge pull request #1591 from pjbgf/fix-fuzz
Fix fuzzing tests
2 parents 20c25df + 26eb1b0 commit 24d6c16

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/cifuzz.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: CIFuzz
22
on:
3+
workflow_dispatch:
34
pull_request:
45
branches:
56
- main

plumbing/transport/transport_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package transport_test
1+
package transport
22

33
import (
44
"fmt"
@@ -7,7 +7,6 @@ import (
77
"testing"
88

99
"github.com/go-git/go-git/v6/plumbing/protocol/packp/capability"
10-
"github.com/go-git/go-git/v6/plumbing/transport"
1110
"github.com/stretchr/testify/assert"
1211
"github.com/stretchr/testify/require"
1312
)
@@ -126,7 +125,7 @@ func TestNewEndpoint(t *testing.T) {
126125
t.Run(tc.input, func(t *testing.T) {
127126
t.Parallel()
128127

129-
ep, err := transport.NewEndpoint(tc.input)
128+
ep, err := NewEndpoint(tc.input)
130129
if tc.wantErr != "" {
131130
require.ErrorContains(t, err, tc.wantErr)
132131
} else {
@@ -147,6 +146,6 @@ func TestFilterUnsupportedCapabilities(t *testing.T) {
147146

148147
func FuzzNewEndpoint(f *testing.F) {
149148
f.Fuzz(func(_ *testing.T, input string) {
150-
transport.NewEndpoint(input)
149+
NewEndpoint(input)
151150
})
152151
}

0 commit comments

Comments
 (0)
0