Skip to content

Commit

Permalink
change the conceptInfo to have stepValue instead of name
Browse files Browse the repository at this point in the history
  • Loading branch information
kashishm committed Nov 28, 2014
1 parent 217bbed commit 8078a2d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
16 changes: 8 additions & 8 deletions api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gauge-proto
Submodule gauge-proto updated 1 files
+1 −1 api.proto
6 changes: 5 additions & 1 deletion spec_details.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ func (specInfoGatherer *specInfoGatherer) getAllStepsFromSpecs() (map[string][]*
func (specInfoGatherer *specInfoGatherer) createConceptInfos(dictionary *conceptDictionary) []*ConceptInfo {
conceptInfos := make([]*ConceptInfo, 0)
for _, concept := range dictionary.conceptsMap {
conceptInfos = append(conceptInfos, &ConceptInfo{Name: proto.String(concept.conceptStep.value), Filepath: proto.String(concept.fileName), LineNumber: proto.Int(concept.conceptStep.lineNo)})
stepValue, err := extractStepValueAndParams(concept.conceptStep.lineText, concept.conceptStep.hasInlineTable)
if err != nil {
continue
}
conceptInfos = append(conceptInfos, &ConceptInfo{StepValue: convertToProtoStepValue(stepValue), Filepath: proto.String(concept.fileName), LineNumber: proto.Int(concept.conceptStep.lineNo)})
}
return conceptInfos
}
Expand Down

0 comments on commit 8078a2d

Please sign in to comment.