github.com/covergates/covergates@v0.2.2-0.20201009050117-42ef8a19fb95/modules/charts/chart.go (about)

     1  package charts
     2  
     3  import "github.com/covergates/covergates/core"
     4  
     5  // ChartService provides charts
     6  type ChartService struct{}
     7  
     8  // CoverageDiffTreeMap of two coverage reports
     9  func (service *ChartService) CoverageDiffTreeMap(old, new *core.Report) core.Chart {
    10  	return NewCoverageDiffTreeMap(old, new)
    11  }
    12  
    13  // RepoCard of repository status
    14  func (service *ChartService) RepoCard(repo *core.Repo, report *core.Report) core.Chart {
    15  	return NewRepoCard(repo, report)
    16  }