MCPcopy Index your code
hub / github.com/coder/coder / runDiffTests

Function runDiffTests

enterprise/audit/diff_internal_test.go:509–522  ·  view source on GitHub ↗
(t *testing.T, tests []diffTest)

Source from the content-addressed store, hash-verified

507}
508
509func runDiffTests(t *testing.T, tests []diffTest) {
510 t.Helper()
511
512 for _, test := range tests {
513 typName := reflect.TypeOf(test.left).Name()
514 t.Run(typName+"/"+test.name, func(t *testing.T) {
515 t.Parallel()
516 require.Equal(t,
517 test.exp,
518 diffValues(test.left, test.right, AuditableResources),
519 )
520 })
521 }
522}

Callers 1

Test_diffFunction · 0.85

Calls 5

diffValuesFunction · 0.85
HelperMethod · 0.65
NameMethod · 0.65
RunMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected