func (tr *TestRunner) GetPolicyUsage() (map[string]*lteprotos.RuleRecord, error) {
	recordsBySubID := map[string]*lteprotos.RuleRecord{}
	table, err := getPolicyUsage()
	if err != nil {
		return recordsBySubID, err
	}
	for _, record := range table.Records {
		recordsBySubID[record.Sid] = record
	}
	return recordsBySubID, nil
}
// GetPolicyUsage is a wrapper around pipelined's GetPolicyUsage and returns
// the policy usage keyed by subscriber ID
GetPolicyUsage is a wrapper around pipelined's GetPolicyUsage and returns
the policy usage keyed by subscriber ID
// GetPolicyUsage is a wrapper around pipelined ' s GetPolicyUsage and returns // the policy usage keyed by subscriber ID
func (tr *TestRunner) GetPolicyUsage() (map[string]*lteprotos.RuleRecord, error) {
	recordsBySubID := map[string]*lteprotos.RuleRecord{}
	table, err := getPolicyUsage()
	if err != nil {
		return recordsBySubID, err
	}
	for _, record := range table.Records {
		recordsBySubID[record.Sid] = record
	}
	return recordsBySubID, nil
}
func ( tr * TestRunner ) GetPolicyUsage ( ) ( map [ string ] * lteprotos . RuleRecord , error ) { recordsBySubID := map [ string ] * lteprotos . RuleRecord { } table , err := getPolicyUsage ( ) if err != nil { return recordsBySubID , err } for _ , record := range table . Records { recordsBySubID [ record . Sid ] = record } return recordsBySubID , nil }
GetPolicyUsage is a wrapper around pipelined's GetPolicyUsage and returns
the policy usage keyed by subscriber ID
GetPolicyUsage is a wrapper around pipelined ' s GetPolicyUsage and returns the policy usage keyed by subscriber ID