github.com/polygon-io/client-go@v1.16.4/rest/models/exchanges_test.go (about) 1 package models_test 2 3 import ( 4 "testing" 5 6 "github.com/polygon-io/client-go/rest/models" 7 ) 8 9 func TestGetExchangesParams(t *testing.T) { 10 assetClass := models.AssetStocks 11 locale := models.US 12 expect := models.GetExchangesParams{ 13 AssetClass: &assetClass, 14 Locale: &locale, 15 } 16 actual := models.GetExchangesParams{}. 17 WithAssetClass(assetClass). 18 WithLocale(locale) 19 checkParams(t, expect, *actual) 20 }