(t *testing.T)
| 59 | } |
| 60 | |
| 61 | func TestString_Constructors(t *testing.T) { |
| 62 | t.Run("reporter", func(t *testing.T) { |
| 63 | reporter := newMockReporter(t) |
| 64 | value := NewString(reporter, "Hello") |
| 65 | value.IsEqual("Hello") |
| 66 | value.chain.assert(t, success) |
| 67 | }) |
| 68 | |
| 69 | t.Run("config", func(t *testing.T) { |
| 70 | reporter := newMockReporter(t) |
| 71 | value := NewStringC(Config{ |
| 72 | Reporter: reporter, |
| 73 | }, "Hello") |
| 74 | value.IsEqual("Hello") |
| 75 | value.chain.assert(t, success) |
| 76 | }) |
| 77 | |
| 78 | t.Run("chain", func(t *testing.T) { |
| 79 | chain := newMockChain(t) |
| 80 | value := newString(chain, "Hello") |
| 81 | assert.NotSame(t, value.chain, chain) |
| 82 | assert.Equal(t, value.chain.context.Path, chain.context.Path) |
| 83 | }) |
| 84 | } |
| 85 | |
| 86 | func TestString_Raw(t *testing.T) { |
| 87 | reporter := newMockReporter(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…