Skip to content

Commit

Permalink
Format code and fix import order to make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
shun159 committed Oct 27, 2024
1 parent 641d80f commit 757e66e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
24 changes: 12 additions & 12 deletions btf/types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,10 @@ func TestFindMemberidx(t *testing.T) {
s1 := Struct{
Name: "struct",
Members: []Member{
Member{Name: "sa", Type: &Int{}, Offset: 0},
Member{Name: "sb", Type: &Int{}, Offset: 4},
Member{Name: "sc", Type: &Int{}, Offset: 8},
Member{Name: "sd", Type: &Int{}, Offset: 12},
{Name: "sa", Type: &Int{}, Offset: 0},
{Name: "sb", Type: &Int{}, Offset: 4},
{Name: "sc", Type: &Int{}, Offset: 8},
{Name: "sd", Type: &Int{}, Offset: 12},
},
}

Expand All @@ -480,10 +480,10 @@ func TestFindMemberidxByOfs(t *testing.T) {
s1 := Struct{
Name: "struct",
Members: []Member{
Member{Name: "sa", Type: &Int{}, Offset: 0},
Member{Name: "sb", Type: &Int{}, Offset: 4},
Member{Name: "sc", Type: &Int{}, Offset: 8},
Member{Name: "sd", Type: &Int{}, Offset: 12},
{Name: "sa", Type: &Int{}, Offset: 0},
{Name: "sb", Type: &Int{}, Offset: 4},
{Name: "sc", Type: &Int{}, Offset: 8},
{Name: "sd", Type: &Int{}, Offset: 12},
},
}

Expand All @@ -495,10 +495,10 @@ func TestFindMemberByName(t *testing.T) {
s := Struct{
Name: "struct",
Members: []Member{
Member{Name: "sa", Type: &Int{}, Offset: 0},
Member{Name: "sb", Type: &Int{}, Offset: 4},
Member{Name: "sc", Type: &Int{}, Offset: 8},
Member{Name: "sd", Type: &Int{}, Offset: 12},
{Name: "sa", Type: &Int{}, Offset: 0},
{Name: "sb", Type: &Int{}, Offset: 4},
{Name: "sc", Type: &Int{}, Offset: 8},
{Name: "sd", Type: &Int{}, Offset: 12},
},
}

Expand Down
3 changes: 2 additions & 1 deletion struct_ops_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import (
"sync"
"testing"

"github.com/go-quicktest/qt"

"github.com/cilium/ebpf/btf"
"github.com/cilium/ebpf/internal"
"github.com/go-quicktest/qt"
)

type specAndRawBTF struct {
Expand Down

0 comments on commit 757e66e

Please sign in to comment.