MCPcopy Index your code
hub / github.com/apache/devlake / IsEmpty

Method IsEmpty

backend/core/models/pipeline.go:42–52  ·  view source on GitHub ↗

IsEmpty checks if a PipelinePlan is empty

()

Source from the content-addressed store, hash-verified

40
41// IsEmpty checks if a PipelinePlan is empty
42func (plan PipelinePlan) IsEmpty() bool {
43 if len(plan) == 0 {
44 return true
45 }
46 for _, stage := range plan {
47 if len(stage) > 0 {
48 return false
49 }
50 }
51 return true
52}
53
54type Pipeline struct {
55 common.Model

Callers 1

TestPipelinePlan_IsEmptyFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestPipelinePlan_IsEmptyFunction · 0.64