MCPcopy Create free account
hub / github.com/conforma/cli / testInputsFor

Function testInputsFor

internal/input/report_test.go:244–285  ·  view source on GitHub ↗
(filePaths []string)

Source from the content-addressed store, hash-verified

242}
243
244func testInputsFor(filePaths []string) []Input {
245 inputs := []Input{
246 {
247 FilePath: filePaths[0],
248 Violations: []evaluator.Result{
249 {
250 Message: "violation1",
251 },
252 },
253 Warnings: []evaluator.Result{
254 {
255 Message: "warning1",
256 },
257 },
258 Successes: []evaluator.Result{
259 {
260 Message: "success1",
261 },
262 },
263 Success: false,
264 },
265 {
266 FilePath: filePaths[1],
267 Violations: []evaluator.Result{
268 {
269 Message: "violation2",
270 },
271 },
272 Success: false,
273 },
274 {
275 FilePath: filePaths[2],
276 Successes: []evaluator.Result{
277 {
278 Message: "success3",
279 },
280 },
281 Success: true,
282 },
283 }
284 return inputs
285}
286
287func Test_ReportText(t *testing.T) {
288 inputs := []Input{

Callers 2

Test_ReportJsonFunction · 0.85
Test_ReportYamlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected