chore: Remove commented code and update FPL struct fields
The code changes in `config.go` remove the commented code for printing a validation message and update the fields of the `FPL` struct in `fpl_test.go`. The commented code is no longer needed and can be safely removed. The updated fields in the `FPL` struct reflect the latest requirements and improve the accuracy of the test cases. This commit enhances code readability and maintainability.
This commit is contained in:
@@ -15,17 +15,27 @@ var _ = Describe("FPL", func() {
|
||||
original = FPL{
|
||||
Category: "FPL",
|
||||
FlightNumber: "AB123",
|
||||
ReferenceData: "Ref123", // Example reference data
|
||||
AircraftID: "ABCD1234",
|
||||
SSRModeAndCode: "A1234",
|
||||
FlightRulesAndType: "IFR",
|
||||
AircraftAndEquipment: "B738",
|
||||
CruisingSpeedAndLevel: "N0450F350",
|
||||
DepartureAirport: "JFK",
|
||||
DepartureTime: time.Now().Format("150405"), // HHMMSS format
|
||||
Route: "DCT GAYEL J95 BUF DCT",
|
||||
DestinationAndTotalTime: "LAX0500", // Example format
|
||||
AlternateAirport: "SFO", // Example alternate airport
|
||||
OtherInfo: "Test flight",
|
||||
SupplementaryInfo: "Supplementary information",
|
||||
SurveillanceEquipment: "SDE3FGHIJ4J5M1RWY",
|
||||
EstimatedArrivalTime: "0153", // Example estimated arrival time
|
||||
PBN: "A1B2B3B4B5D1L1",
|
||||
NavigationEquipment: "NAV/ABAS",
|
||||
EstimatedElapsedTime: "EET/ZBPE0112",
|
||||
SELCALCode: "KMAL",
|
||||
PerformanceCategory: "C",
|
||||
RerouteInformation: "RIF/FRT N640 ZBYN", // Example reroute information
|
||||
Remarks: "RMK/TCAS EQUIPPED", // Example remarks
|
||||
}
|
||||
})
|
||||
|
||||
@@ -55,7 +65,6 @@ var _ = Describe("FPL", func() {
|
||||
AircraftID: "ABCD1234",
|
||||
SSRModeAndCode: "A1234",
|
||||
FlightRulesAndType: "IFR",
|
||||
AircraftAndEquipment: "B738",
|
||||
CruisingSpeedAndLevel: "N0450F350",
|
||||
DepartureAirport: "JFK",
|
||||
DepartureTime: "150405",
|
||||
|
||||
Reference in New Issue
Block a user