File: validation_test.go

package info (click to toggle)
golang-github-viant-assertly 0.5.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 240 kB
  • sloc: makefile: 2
file content (15 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package assertly

import (
	"github.com/stretchr/testify/assert"
	"testing"
)

func TestValidation_Report(t *testing.T) {

	source := NewValidation()
	source.AddFailure(NewFailure("", ":ad[].we", "test", nil, nil))
	source.PassedCount++
	assert.EqualValues(t, ":ad[].we: test\nPassed: 1\nFailed: 1", source.Report())

}