package strategy import ( "testing" ) func TestCashFactoryContext_GetCash(t *testing.T) { var data = &CashFactoryStrategyContext{d: 3} data.GetCash() result := data.GetResult(500) t.Log(result) }