Skip to content

Commit

Permalink
chore: fix lint issue and generate the mocked job file.
Browse files Browse the repository at this point in the history
Signed-off-by: Asklv <[email protected]>
  • Loading branch information
IRONICBo committed Jul 23, 2024
1 parent 37307c6 commit 38d3b15
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 5 deletions.
13 changes: 8 additions & 5 deletions manager/job/manager_tasks.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 The Dragonfly Authors
* Copyright 2024 The Dragonfly Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -13,22 +13,25 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//go:generate mockgen -destination mocks/delete_task_mock.go -source delete_task.go -package mocks

//go:generate mockgen -destination mocks/manager_tasks_mock.go -source manager_tasks.go -package mocks

package job

import (
"context"
"fmt"
"time"

machineryv1tasks "github.com/RichardKnop/machinery/v1/tasks"
"github.com/google/uuid"
"go.opentelemetry.io/otel/trace"

logger "d7y.io/dragonfly/v2/internal/dflog"
internaljob "d7y.io/dragonfly/v2/internal/job"
"d7y.io/dragonfly/v2/manager/config"
"d7y.io/dragonfly/v2/manager/models"
"d7y.io/dragonfly/v2/manager/types"
machineryv1tasks "github.com/RichardKnop/machinery/v1/tasks"
"github.com/google/uuid"
"go.opentelemetry.io/otel/trace"
)

// ManagerTask is an interface for delete and list tasks.
Expand Down
72 changes: 72 additions & 0 deletions manager/job/mocks/manager_tasks_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 38d3b15

Please sign in to comment.