Skip to content

Commit

Permalink
[Feature] add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
zjc17 committed Apr 30, 2023
1 parent 9d9cf84 commit 1e2a5f7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/parser/model_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package parser

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

func TestParseResult_From_Error(t *testing.T) {
p := new(ParseResult)
err := p.From("")
assert.NotNil(t, err)
}

0 comments on commit 1e2a5f7

Please sign in to comment.