Skip to content

Commit

Permalink
SetInTestingFile return old value
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Aug 14, 2021
1 parent 0c8fdd8 commit b8eceb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,9 @@ func (p *Package) CB() *CodeBuilder {
}

// SetInTestingFile sets inTestingFile or not.
func (p *Package) SetInTestingFile(inTestingFile bool) {
p.testingFile = getInTestingFile(inTestingFile)
func (p *Package) SetInTestingFile(inTestingFile bool) (old bool) {
p.testingFile, old = getInTestingFile(inTestingFile), p.InTestingFile()
return
}

// InTestingFile returns inTestingFile or not.
Expand Down

0 comments on commit b8eceb4

Please sign in to comment.