Skip to content

Commit

Permalink
Improve subtests names for "t.Run" in "semantic_test.go"
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerlucena committed Oct 9, 2020
1 parent 89bcc1a commit 13e02b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bql/semantic/semantic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func TestGraphClauseManipulation(t *testing.T) {
func TestFilterClauseManipulation(t *testing.T) {
st := &Statement{}

t.Run("test workingFilter initial states", func(t *testing.T) {
t.Run("workingFilter initial states ok", func(t *testing.T) {
if wf := st.WorkingFilter(); wf != nil {
t.Fatalf(`semantic.Statement.WorkingFilter() = %q for statement "%v" without initialization; want nil`, wf, st)
}
Expand All @@ -272,7 +272,7 @@ func TestFilterClauseManipulation(t *testing.T) {
}
})

t.Run("test call to add workingFilter", func(t *testing.T) {
t.Run("add workingFilter success", func(t *testing.T) {
wf := st.WorkingFilter()
*wf = FilterClause{Operation: "latest", Binding: "?p"}
st.AddWorkingFilterClause()
Expand Down

0 comments on commit 13e02b0

Please sign in to comment.