コード例 #1
0
ファイル: runner.go プロジェクト: EasyLee/goconvey
func (self *runner) link(action *Action) string {
	_, _, parentAction := gotest.ResolveExternalCaller()
	childAction := action.name
	self.linkTo(topLevel, parentAction)
	self.linkTo(parentAction, childAction)
	return parentAction
}
コード例 #2
0
ファイル: scope_report.go プロジェクト: rubycut/goconvey
func NewScopeReport(title, name string) *ScopeReport {
	file, line, _ := gotest.ResolveExternalCaller()
	self := new(ScopeReport)
	self.Title = title
	self.ID = fmt.Sprintf("%s|%s", title, name)
	self.File = file
	self.Line = line
	return self
}
コード例 #3
0
ファイル: scope_report.go プロジェクト: vad/goconvey
func NewScopeReport(title, id string) *ScopeReport {
	file, line, _ := gotest.ResolveExternalCaller()
	self := &ScopeReport{}
	self.Title = title
	self.ID = id
	self.File = file
	self.Line = line
	return self
}
コード例 #4
0
ファイル: registration.go プロジェクト: rubycut/goconvey
func NewRegistration(situation string, action *Action, test T) *Registration {
	file, line, _ := gotest.ResolveExternalCaller()
	self := new(Registration)
	self.Situation = situation
	self.Action = action
	self.Test = test
	self.File = file
	self.Line = line
	return self
}
コード例 #5
0
ファイル: story_report.go プロジェクト: npadmana/goconvey
func NewStoryReport(test gotest.T) *StoryReport {
	file, line, name := gotest.ResolveExternalCaller()
	name = removePackagePath(name)
	self := &StoryReport{}
	self.Test = test
	self.Name = name
	self.File = file
	self.Line = line
	return self
}
コード例 #6
0
ファイル: assertion_report.go プロジェクト: vad/goconvey
func caller() (file string, line int) {
	file, line, _ = gotest.ResolveExternalCaller()
	return
}