• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

trento-project / agent / 22064031548

16 Feb 2026 01:07PM UTC coverage: 75.429%. First build
22064031548

Pull #548

github

arbulu89
Import and copy operators code from workbench
Pull Request #548: Import and copy operators code from workbench

1917 of 2247 new or added lines in 18 files covered. (85.31%)

6950 of 9214 relevant lines covered (75.43%)

16.26 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

72.0
/internal/operations/operator/execution.go
1
package operator
2

3
import (
4
        "fmt"
5
)
6

7
type ExecutionError struct {
8
        ErrorPhase PhaseName
9
        Message    string
10
}
11

NEW
12
func (e ExecutionError) Error() string {
×
NEW
13
        return fmt.Sprintf(
×
NEW
14
                "error during operator exeuction in phase: %s, reason: %s",
×
NEW
15
                e.ErrorPhase,
×
NEW
16
                e.Message,
×
NEW
17
        )
×
NEW
18
}
×
19

20
type ExecutionSuccess struct {
21
        Diff      map[string]any
22
        LastPhase PhaseName
23
}
24

25
type ExecutionReport struct {
26
        OperationID string
27
        Success     *ExecutionSuccess
28
        Error       *ExecutionError
29
}
30

31
func executionReportWithError(err error, phase PhaseName, operationID string) *ExecutionReport {
112✔
32
        return &ExecutionReport{
112✔
33
                OperationID: operationID,
112✔
34
                Error: &ExecutionError{
112✔
35
                        Message:    err.Error(),
112✔
36
                        ErrorPhase: phase,
112✔
37
                },
112✔
38
        }
112✔
39
}
112✔
40

41
func executionReportWithSuccess(diff map[string]any, phase PhaseName, operationID string) *ExecutionReport {
61✔
42
        return &ExecutionReport{
61✔
43
                OperationID: operationID,
61✔
44
                Success: &ExecutionSuccess{
61✔
45
                        Diff:      diff,
61✔
46
                        LastPhase: phase,
61✔
47
                },
61✔
48
        }
61✔
49
}
61✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc