snapshot

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestCreateSnapshot

func TestCreateSnapshot(t *testing.T, payload any, token string, expectedResponse ExpectedCreateSnapshotResponse, expectedUserId int, expectedStatusCode int) (snapId int, svIds []int)

func TestDeleteSnapshot

func TestDeleteSnapshot(t *testing.T, snapshotId int, token string, expectedUserId int, expectedStatusCode int)

func TestGetSnapshot

func TestGetSnapshot(t *testing.T, snapshotId int, token string, expectedResponse ExpectedGetSnapshotResponse, expectedUserId int, expectedStatusCode int)

func TestGetSnapshotByAccount

func TestGetSnapshotByAccount(t *testing.T, snapshotId int, token string, expectedResponse ExpectedGetSnapshotByAccountResponse, expectedUserId int, expectedStatusCode int)

func TestGetSnapshotByAssetCategory

func TestGetSnapshotByAssetCategory(t *testing.T, snapshotId int, token string, expectedResponse ExpectedGetSnapshotByAssetCategoryResponse, expectedUserId int, expectedStatusCode int)

func TestGetSnapshotByInstitution

func TestGetSnapshotByInstitution(t *testing.T, snapshotId int, token string, expectedResponse ExpectedGetSnapshotByInstitutionResponse, expectedUserId int, expectedStatusCode int)

func TestGetSnapshotByMaturationDate

func TestGetSnapshotByMaturationDate(t *testing.T, snapshotId int, token string, expectedResponse ExpectedGetSnapshotByMaturationDateResponse, expectedUserId int, expectedStatusCode int)

func TestGetSnapshotByTaxShelter

func TestGetSnapshotByTaxShelter(t *testing.T, snapshotId int, token string, expectedResponse ExpectedGetSnapshotByTaxShelterResponse, expectedUserId int, expectedStatusCode int)

func TestGetSnapshotRebalance

func TestGetSnapshotRebalance(t *testing.T, snapshotId int, token string, expectedResponse ExpectedGetSnapshotRebalanceResponse, expectedUserId int, expectedStatusCode int)

func TestGetSnapshots

func TestGetSnapshots(t *testing.T, route string, token string, expectedUserId int, expectedStatusCode int, expectedResponse ExpectedGetSnapshotsResponse)

func TestUpdateSnapshot

func TestUpdateSnapshot(t *testing.T, snapshotId int, payload any, token string, expectedUserId int, expectedStatusCode int)

Types

type ExpectedCreateSnapshotResponse

type ExpectedCreateSnapshotResponse struct {
	Total         float64
	WeightedErPct float64
}

type ExpectedGetSnapshotByAccountResponse

type ExpectedGetSnapshotByAccountResponse struct {
	AccountNames []string
	Totals       []float64
}

type ExpectedGetSnapshotByAssetCategoryResponse

type ExpectedGetSnapshotByAssetCategoryResponse struct {
	HoldingNames []string
	Totals       []float64
}

type ExpectedGetSnapshotByInstitutionResponse

type ExpectedGetSnapshotByInstitutionResponse struct {
	Institutions []string
	Totals       []float64
}

type ExpectedGetSnapshotByMaturationDateResponse

type ExpectedGetSnapshotByMaturationDateResponse struct {
	Resources        []types.MaturationDateResource
	Maturation_start string
	Maturation_end   string
}

type ExpectedGetSnapshotByTaxShelterResponse

type ExpectedGetSnapshotByTaxShelterResponse struct {
	TaxShelters []string
	Totals      []float64
}

type ExpectedGetSnapshotRebalanceResponse

type ExpectedGetSnapshotRebalanceResponse struct {
	Target_allocation         []types.AssetAllocation
	Current_allocation        []types.AssetAllocation
	Change_required           []types.AssetAllocation
	Snapshot_total            float64
	Snapshot_total_omit_skips float64
	Rebalance_thresh_pct      int
}

type ExpectedGetSnapshotResponse

type ExpectedGetSnapshotResponse struct {
	AccountIds    []int
	HoldingIds    []int
	Total         float64
	WeightedErPct float64
}

type ExpectedGetSnapshotsResponse

type ExpectedGetSnapshotsResponse struct {
	Snapshots  int
	Pagination types.PaginationMetadata
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL