Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

sync: update CI config files #34

Merged
merged 7 commits into from
Jul 22, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mock FileInfo.Sys() to return nil explicitly
Otherwise, this function call panics on windows.
  • Loading branch information
masih committed Jul 22, 2021
commit 73547d879f88980f233b3f929dbcaadabe233249
4 changes: 4 additions & 0 deletions filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ func (m *mockFileInfo) Name() string {
return m.name
}

func (m *mockFileInfo) Sys() interface{} {
return nil
}

var _ os.FileInfo = &mockFileInfo{}

func TestFileFilter(t *testing.T) {
Expand Down