Correct spelling errors

pull/118/head
Jean-Marc Meessen 11 months ago
parent 5cb43666c5
commit da537ea85e
No known key found for this signature in database

@ -29,7 +29,7 @@ const (
QSL QSL
) )
func getBraketedData(inputLine string, braketType BraketType) (braketedData, cleanedLine string) { func getBracketedData(inputLine string, braketType BraketType) (braketedData, cleanedLine string) {
// Get substring between two strings. // Get substring between two strings.
a := "" a := ""
b := "" b := ""

@ -74,7 +74,7 @@ func Test_getBraketedData(t *testing.T) {
} }
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
gotBraketedData, gotCleanedLine := getBraketedData(tt.args.inputLine, tt.args.braketType) gotBraketedData, gotCleanedLine := getBracketedData(tt.args.inputLine, tt.args.braketType)
if gotBraketedData != tt.wantBraketedData { if gotBraketedData != tt.wantBraketedData {
t.Errorf("getBraketedData() gotBraketedData = %v, want %v", gotBraketedData, tt.wantBraketedData) t.Errorf("getBraketedData() gotBraketedData = %v, want %v", gotBraketedData, tt.wantBraketedData)
} }

@ -338,7 +338,7 @@ func LoadFile(inputFilename string, isInterpolateTime bool) (filleFullLog []LogL
} }
//store the current logline so that it can be used as a model when parsing the next line //store the current logline so that it can be used as a model when parsing the next line
// and reset the firstline flag // and reset the FirstLine flag
previousLogLine = logline previousLogLine = logline
headerIsFirstLine = false headerIsFirstLine = false

@ -98,12 +98,12 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg
//TODO: what happens when we have <> or when there are multiple comments //TODO: what happens when we have <> or when there are multiple comments
//TODO: Refactor this! it is ugly //TODO: Refactor this! it is ugly
comment, inputStr := getBraketedData(inputStr, COMMENT) comment, inputStr := getBracketedData(inputStr, COMMENT)
if comment != "" { if comment != "" {
logLine.Comment = comment logLine.Comment = comment
} }
QSLmsg, inputStr := getBraketedData(inputStr, QSL) QSLmsg, inputStr := getBracketedData(inputStr, QSL)
if QSLmsg != "" { if QSLmsg != "" {
logLine.QSLmsg = QSLmsg logLine.QSLmsg = QSLmsg
} }
@ -125,7 +125,7 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg
logLine.RSTrcvd = defaultReport logLine.RSTrcvd = defaultReport
} else { } else {
errorMsg = errorMsg + "Double definitiion of RST" errorMsg = errorMsg + "Double definition of RST"
} }
continue continue
} }
@ -295,7 +295,7 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg
// If the "wwff" keyword is used, skip it // If the "wwff" keyword is used, skip it
if regexpIsWwffKeyWord.MatchString(element) { if regexpIsWwffKeyWord.MatchString(element) {
// this keyword is not requiered anymore with FLE 3 and doesn't add any value // this keyword is not required anymore with FLE 3 and doesn't add any value
continue continue
} }
@ -308,7 +308,7 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg
// If the "pota" keyword is used, skip it // If the "pota" keyword is used, skip it
if regexpIsPotaKeyWord.MatchString(element) { if regexpIsPotaKeyWord.MatchString(element) {
// this keyword is not requiered anymore with FLE 3 and doesn't add any value // this keyword is not required anymore with FLE 3 and doesn't add any value
continue continue
} }
@ -321,7 +321,7 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg
// If the "sota" keyword is used, skip it // If the "sota" keyword is used, skip it
if regexpIsSotaKeyWord.MatchString(element) { if regexpIsSotaKeyWord.MatchString(element) {
// this keyword is not requiered anymore with FLE 3 and doesn't add any value // this keyword is not required anymore with FLE 3 and doesn't add any value
continue continue
} }

Loading…
Cancel
Save