MCPcopy Create free account
hub / github.com/aws-cloudformation/rain / TestCompareScalar

Function TestCompareScalar

cft/diff/diff_test.go:29–47  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

27}
28
29func TestCompareScalar(t *testing.T) {
30 testCompare(t, []compareTest{
31 {
32 nil, nil, "(=)<nil>", Unchanged,
33 },
34 {
35 "foo", "foo", "(=)foo", Unchanged,
36 },
37 {
38 "foo", "bar", "(>)bar", Changed,
39 },
40 {
41 "foo", 1, "(>)1", Changed,
42 },
43 {
44 "foo", []int{1, 2, 3}, "(>)[1 2 3]", Changed,
45 },
46 })
47}
48
49func TestCompareSlices(t *testing.T) {
50 testCompare(t, []compareTest{

Callers

nothing calls this directly

Calls 1

testCompareFunction · 0.85

Tested by

no test coverage detected