mirror of
https://github.com/mikefarah/yq.git
synced 2026-06-30 00:51:40 +00:00
Fixing tests with latest linting rules
This commit is contained in:
parent
b25ae78545
commit
80c319aa0c
@ -13,6 +13,7 @@ func TestCreateEvaluateAllCommand(t *testing.T) {
|
||||
|
||||
if cmd == nil {
|
||||
t.Fatal("createEvaluateAllCommand returned nil")
|
||||
return
|
||||
}
|
||||
|
||||
// Test basic command properties
|
||||
|
||||
@ -13,6 +13,7 @@ func TestCreateEvaluateSequenceCommand(t *testing.T) {
|
||||
|
||||
if cmd == nil {
|
||||
t.Fatal("createEvaluateSequenceCommand returned nil")
|
||||
return
|
||||
}
|
||||
|
||||
// Test basic command properties
|
||||
|
||||
@ -195,6 +195,7 @@ func TestNew(t *testing.T) {
|
||||
|
||||
if rootCmd == nil {
|
||||
t.Fatal("New() returned nil")
|
||||
return
|
||||
}
|
||||
|
||||
// Test basic command properties
|
||||
|
||||
@ -95,6 +95,7 @@ func TestParserSingleOperation(t *testing.T) {
|
||||
test.AssertResultComplex(t, nil, err)
|
||||
if result == nil {
|
||||
t.Fatal("Expected non-nil result for single operation")
|
||||
return
|
||||
}
|
||||
if result.Operation == nil {
|
||||
t.Fatal("Expected operation to be set")
|
||||
|
||||
@ -14,6 +14,7 @@ func TestMainFunction(t *testing.T) {
|
||||
cmd := command.New()
|
||||
if cmd == nil {
|
||||
t.Fatal("command.New() returned nil")
|
||||
return
|
||||
}
|
||||
|
||||
if cmd.Use != "yq" {
|
||||
@ -99,6 +100,7 @@ func TestMainFunctionExecution(t *testing.T) {
|
||||
// the command structure is correct and can be configured
|
||||
if cmd == nil {
|
||||
t.Fatal("Command should not be nil")
|
||||
return
|
||||
}
|
||||
|
||||
if cmd.Use != "yq" {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user