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

Function toBaselineValue

lib/workertypes/types.go:792–817  ·  view source on GitHub ↗
(s v1.BaselineState)

Source from the content-addressed store, hash-verified

790}
791
792func (g FeatureDiffV1SummaryGenerator) processMoves(highlights []SummaryHighlight,
793 moves []v1.FeatureMoved) ([]SummaryHighlight, bool) {
794 for _, m := range moves {
795 if len(highlights) >= MaxHighlights {
796 return highlights, true
797 }
798 highlights = append(highlights, SummaryHighlight{
799 Type: SummaryHighlightTypeMoved,
800 FeatureID: m.ToID, // Use new ID after move
801 FeatureName: m.ToName,
802 Moved: &Change[FeatureRef]{
803 From: FeatureRef{
804 ID: m.FromID,
805 Name: m.FromName,
806 QueryMatch: "",
807 },
808 To: FeatureRef{
809 ID: m.ToID,
810 Name: m.ToName,
811 QueryMatch: toQueryMatchStatus(m.QueryMatch),
812 },
813 },
814 BrowserChanges: nil,
815 BaselineChange: nil,
816 NameChange: nil,
817 Docs: nil,
818 Split: nil,
819 })
820 }

Callers 1

processBaselineChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected