Documentation ¶
Overview ¶
RA Summary: gosec - errcheck - Unchecked return value RA: Linter flags errcheck error: Ignoring a method's return value can cause the program to overlook unexpected states and conditions. RA: Functions with unchecked return values in the file are used to generate stub data for a localized version of the application. RA: Given the data is being generated for local use and does not contain any sensitive information, there are no unexpected states and conditions RA: in which this would be considered a risk RA Developer Status: Mitigated RA Validator Status: Mitigated RA Modified Severity: N/A nolint:errcheck
Index ¶
- Variables
- func CreateGenericMoveWithPPMShipment(appCtx appcontext.AppContext, moveInfo MoveCreatorInfo, ...) (models.Move, models.PPMShipment)
- func CreateHHGNeedsServicesCounselingUSMC3(appCtx appcontext.AppContext, userUploader *uploader.UserUploader, ...) models.Move
- func CreateMoveWithCloseOut(appCtx appcontext.AppContext, userUploader *uploader.UserUploader, ...) models.Move
- func CreateMoveWithCloseoutOffice(appCtx appcontext.AppContext, moveInfo MoveCreatorInfo, ...) models.Move
- func CreateMoveWithHHGAndNTSRShipments(appCtx appcontext.AppContext, locator string, usesExternalVendor bool) models.Move
- func CreateMoveWithHHGAndNTSShipments(appCtx appcontext.AppContext, locator string, usesExternalVendor bool) models.Move
- func CreateMoveWithHHGAndPPM(appCtx appcontext.AppContext, userUploader *uploader.UserUploader, ...) models.Move
- func CreateMoveWithNTSShipment(appCtx appcontext.AppContext, locator string, usesExternalVendor bool) models.Move
- func CreateMoveWithOptions(appCtx appcontext.AppContext, assertions testdatagen.Assertions) models.Move
- func CreateNeedsServicesCounseling(appCtx appcontext.AppContext, ordersType internalmessages.OrdersType, ...) models.Move
- func CreateNeedsServicesCounselingMinimalNTSR(appCtx appcontext.AppContext, ordersType internalmessages.OrdersType, ...) models.Move
- func CreateNeedsServicesCounselingWithAmendedOrders(appCtx appcontext.AppContext, userUploader *uploader.UserUploader, ...) models.Move
- func CreateSubmittedMoveWithPPMShipmentForSC(appCtx appcontext.AppContext, userUploader *uploader.UserUploader, ...) models.Move
- func MakeSITExtensionsForShipment(appCtx appcontext.AppContext, shipment models.MTOShipment)
- func MakeSITWithPendingSITExtensionsForShipment(appCtx appcontext.AppContext, shipment models.MTOShipment)
- type MoveCreatorInfo
- type NamedScenario
Constants ¶
This section is empty.
Variables ¶
var BandwidthScenario = bandwidthScenario{Name: "bandwidth"}
BandwidthScenario is the thing
var Dec31TestYear = time.Date(testdatagen.TestYear, time.December, 31, 0, 0, 0, 0, time.UTC)
Dec31TestYear is December 31 of TestYear
var DefaultCloseoutOfficeID = uuid.FromStringOrNil("5de30a80-a8e5-458c-9b54-edfae7b8cdb9")
Closeout offices populated via migrations, this is the ID of one within the GBLOC 'KKFA' with the name 'Creech AFB'
var DevSeedScenario = devSeedScenario{
Name: "dev_seed",
}
DevSeedScenario setup information for the dev seed
var E2eBasicScenario = e2eBasicScenario{Name: "e2e_basic"}
E2eBasicScenario Is the thing
var May14FollowingYear = time.Date(testdatagen.TestYear+1, time.May, 14, 0, 0, 0, 0, time.UTC)
May14FollowingYear is May 14 of the year AFTER TestYear
var May14GHCTestYear = time.Date(testdatagen.GHCTestYear, time.May, 14, 0, 0, 0, 0, time.UTC)
var May15TestYear = time.Date(testdatagen.TestYear, time.May, 15, 0, 0, 0, 0, time.UTC)
May15TestYear is a May 15 of TestYear
var Oct1TestYear = time.Date(testdatagen.TestYear, time.October, 1, 0, 0, 0, 0, time.UTC)
Oct1TestYear is October 1 of TestYear
Functions ¶
func CreateGenericMoveWithPPMShipment ¶
func CreateGenericMoveWithPPMShipment(appCtx appcontext.AppContext, moveInfo MoveCreatorInfo, useMinimalPPMShipment bool, userUploader *uploader.UserUploader, mtoShipmentTemplate *models.MTOShipment, moveTemplate *models.Move, ppmShipmentTemplate models.PPMShipment) (models.Move, models.PPMShipment)
func CreateHHGNeedsServicesCounselingUSMC3 ¶
func CreateHHGNeedsServicesCounselingUSMC3(appCtx appcontext.AppContext, userUploader *uploader.UserUploader, locator string) models.Move
func CreateMoveWithCloseOut ¶
func CreateMoveWithCloseOut(appCtx appcontext.AppContext, userUploader *uploader.UserUploader, moveInfo MoveCreatorInfo, branch models.ServiceMemberAffiliation) models.Move
func CreateMoveWithCloseoutOffice ¶
func CreateMoveWithCloseoutOffice(appCtx appcontext.AppContext, moveInfo MoveCreatorInfo, userUploader *uploader.UserUploader) models.Move
func CreateMoveWithHHGAndNTSRShipments ¶
func CreateMoveWithHHGAndNTSRShipments(appCtx appcontext.AppContext, locator string, usesExternalVendor bool) models.Move
func CreateMoveWithHHGAndNTSShipments ¶
func CreateMoveWithHHGAndNTSShipments(appCtx appcontext.AppContext, locator string, usesExternalVendor bool) models.Move
func CreateMoveWithHHGAndPPM ¶
func CreateMoveWithHHGAndPPM(appCtx appcontext.AppContext, userUploader *uploader.UserUploader, moveInfo MoveCreatorInfo, branch models.ServiceMemberAffiliation, readyForCloseout bool) models.Move
Create a move with both HHG and PPM shipments, used to test partial PPM orders.
func CreateMoveWithNTSShipment ¶
func CreateMoveWithNTSShipment(appCtx appcontext.AppContext, locator string, usesExternalVendor bool) models.Move
func CreateMoveWithOptions ¶
func CreateMoveWithOptions(appCtx appcontext.AppContext, assertions testdatagen.Assertions) models.Move
A generic method
func CreateNeedsServicesCounseling ¶
func CreateNeedsServicesCounseling(appCtx appcontext.AppContext, ordersType internalmessages.OrdersType, shipmentType models.MTOShipmentType, destinationType *models.DestinationType, locator string) models.Move
Create Needs Service Counseling - pass in orders with all required information, shipment type, destination type, locator
func CreateNeedsServicesCounselingMinimalNTSR ¶
func CreateNeedsServicesCounselingMinimalNTSR(appCtx appcontext.AppContext, ordersType internalmessages.OrdersType, locator string) models.Move
func CreateNeedsServicesCounselingWithAmendedOrders ¶
func CreateNeedsServicesCounselingWithAmendedOrders(appCtx appcontext.AppContext, userUploader *uploader.UserUploader, ordersType internalmessages.OrdersType, shipmentType models.MTOShipmentType, destinationType *models.DestinationType, locator string) models.Move
func CreateSubmittedMoveWithPPMShipmentForSC ¶
func CreateSubmittedMoveWithPPMShipmentForSC(appCtx appcontext.AppContext, userUploader *uploader.UserUploader, _ services.MoveRouter, moveInfo MoveCreatorInfo) models.Move
func MakeSITExtensionsForShipment ¶
func MakeSITExtensionsForShipment(appCtx appcontext.AppContext, shipment models.MTOShipment)
MakeSITExtensionsForShipment helper function
func MakeSITWithPendingSITExtensionsForShipment ¶
func MakeSITWithPendingSITExtensionsForShipment(appCtx appcontext.AppContext, shipment models.MTOShipment)
Types ¶
type MoveCreatorInfo ¶
type MoveCreatorInfo struct { UserID uuid.UUID Email string SmID uuid.UUID FirstName string LastName string MoveID uuid.UUID MoveLocator string CloseoutOfficeID *uuid.UUID }
fully public to facilitate reuse outside of this package
type NamedScenario ¶
NamedScenario is a data generation scenario that has a name