()
| 74 | } |
| 75 | |
| 76 | func createFakeTestResults() []runtime.TestResult { |
| 77 | tr := runtime.TestResult{ |
| 78 | TestCase: runtime.TestCase{ |
| 79 | Title: "Failed test", |
| 80 | Command: runtime.CommandUnderTest{}, |
| 81 | }, |
| 82 | ValidationResult: runtime.ValidationResult{ |
| 83 | Success: false, |
| 84 | }, |
| 85 | FailedProperty: "Stdout", |
| 86 | Node: "192.168.0.1", |
| 87 | } |
| 88 | |
| 89 | tr2 := runtime.TestResult{ |
| 90 | TestCase: runtime.TestCase{ |
| 91 | Title: "Successful test", |
| 92 | Command: runtime.CommandUnderTest{}, |
| 93 | }, |
| 94 | ValidationResult: runtime.ValidationResult{ |
| 95 | Success: true, |
| 96 | }, |
| 97 | FailedProperty: "", |
| 98 | Node: "docker-host", |
| 99 | } |
| 100 | |
| 101 | tr3 := runtime.TestResult{ |
| 102 | TestCase: runtime.TestCase{ |
| 103 | Title: "Invalid command", |
| 104 | Command: runtime.CommandUnderTest{ |
| 105 | Cmd: "some stupid config", |
| 106 | }, |
| 107 | Result: runtime.CommandResult{ |
| 108 | Error: fmt.Errorf("Some error message"), |
| 109 | }, |
| 110 | }, |
| 111 | Node: "local", |
| 112 | Tries: 2, |
| 113 | } |
| 114 | |
| 115 | tr4 := runtime.TestResult{ |
| 116 | TestCase: runtime.TestCase{ |
| 117 | Title: "Skipped test", |
| 118 | Command: runtime.CommandUnderTest{}, |
| 119 | }, |
| 120 | FailedProperty: "Stdout", |
| 121 | Node: "192.168.0.1", |
| 122 | Skipped: true, |
| 123 | } |
| 124 | |
| 125 | return []runtime.TestResult{tr, tr2, tr3, tr4} |
| 126 | } |
no outgoing calls
no test coverage detected