Esempio n. 1
0
// byTraceForTile calculates all the paramsets from the given tile and tallies.
func byTraceForTile(tile *tiling.Tile, traceTally map[string]tally.Tally) map[string]map[string][]string {
	ret := map[string]map[string][]string{}

	for id, t := range traceTally {
		if tr, ok := tile.Traces[id]; ok {
			test := tr.Params()[types.PRIMARY_KEY_FIELD]
			for digest, _ := range t {
				key := test + ":" + digest
				if _, ok := ret[key]; !ok {
					ret[key] = map[string][]string{}
				}
				util.AddParamsToParamSet(ret[key], tr.Params())
			}
		}
	}

	return ret
}
Esempio n. 2
0
// add adds to an existing intermediate value.
func (i *issueIntermediate) add(tbr *types.TBResult) {
	util.AddParamsToParamSet(i.paramSet, tbr.Params)
}
Esempio n. 3
0
// add adds to an existing intermediate value.
func (i *issueIntermediate) add(params map[string]string) {
	util.AddParamsToParamSet(i.paramSet, params)
}