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
)
func getBraketedData(inputLine string, braketType BraketType) (braketedData, cleanedLine string) {
func getBracketedData(inputLine string, braketType BraketType) (braketedData, cleanedLine string) {
// Get substring between two strings.
a := ""
b := ""

@ -74,7 +74,7 @@ func Test_getBraketedData(t *testing.T) {
}
for _, tt := range tests {
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 {
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
// and reset the firstline flag
// and reset the FirstLine flag
previousLogLine = logline
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: Refactor this! it is ugly
comment, inputStr := getBraketedData(inputStr, COMMENT)
comment, inputStr := getBracketedData(inputStr, COMMENT)
if comment != "" {
logLine.Comment = comment
}
QSLmsg, inputStr := getBraketedData(inputStr, QSL)
QSLmsg, inputStr := getBracketedData(inputStr, QSL)
if QSLmsg != "" {
logLine.QSLmsg = QSLmsg
}
@ -125,7 +125,7 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg
logLine.RSTrcvd = defaultReport
} else {
errorMsg = errorMsg + "Double definitiion of RST"
errorMsg = errorMsg + "Double definition of RST"
}
continue
}
@ -295,7 +295,7 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg
// If the "wwff" keyword is used, skip it
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
}
@ -308,7 +308,7 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg
// If the "pota" keyword is used, skip it
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
}
@ -321,7 +321,7 @@ func ParseLine(inputStr string, previousLine LogLine) (logLine LogLine, errorMsg
// If the "sota" keyword is used, skip it
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
}

Loading…
Cancel
Save