MCPcopy Create free account
hub / github.com/GoogleChrome/webstatus.dev / toBrowserValue

Function toBrowserValue

lib/workertypes/types.go:819–842  ·  view source on GitHub ↗
(s v1.BrowserState)

Source from the content-addressed store, hash-verified

817 Docs: nil,
818 Split: nil,
819 })
820 }
821
822 return highlights, false
823}
824
825func (g FeatureDiffV1SummaryGenerator) processSplits(highlights []SummaryHighlight,
826 splits []v1.FeatureSplit) ([]SummaryHighlight, bool) {
827 for _, split := range splits {
828 if len(highlights) >= MaxHighlights {
829 return highlights, true
830 }
831 var to []FeatureRef
832 for _, t := range split.To {
833 to = append(to, FeatureRef{
834 ID: t.ID,
835 Name: t.Name,
836 QueryMatch: toQueryMatchStatus(t.QueryMatch),
837 })
838 }
839 highlights = append(highlights, SummaryHighlight{
840 Type: SummaryHighlightTypeSplit,
841 FeatureID: split.FromID,
842 FeatureName: split.FromName,
843 Split: &SplitChange{
844 From: FeatureRef{
845 ID: split.FromID,

Callers 1

processBrowserChangesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected