MCPcopy Create free account
hub / github.com/apache/devlake / TestFakeGithubRepo

Struct TestFakeGithubRepo

backend/helpers/pluginhelper/api/scope_helper_test.go:74–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74type TestFakeGithubRepo struct {
75 common.Scope
76 GithubId int `json:"githubId" gorm:"primaryKey" mapstructure:"githubId"`
77 Name string `json:"name" gorm:"type:varchar(255)" mapstructure:"name,omitempty"`
78 HTMLUrl string `json:"HTMLUrl" gorm:"type:varchar(255)" mapstructure:"HTMLUrl,omitempty"`
79 Description string `json:"description" mapstructure:"description,omitempty"`
80 OwnerId int `json:"ownerId" mapstructure:"ownerId,omitempty"`
81 Language string `json:"language" gorm:"type:varchar(255)" mapstructure:"language,omitempty"`
82 ParentGithubId int `json:"parentId" mapstructure:"parentGithubId,omitempty"`
83 ParentHTMLUrl string `json:"parentHtmlUrl" mapstructure:"parentHtmlUrl,omitempty"`
84 CloneUrl string `json:"cloneUrl" gorm:"type:varchar(255)" mapstructure:"cloneUrl,omitempty"`
85 CreatedDate *time.Time `json:"createdDate" mapstructure:"-"`
86 UpdatedDate *time.Time `json:"updatedDate" mapstructure:"-"`
87}
88
89func (r TestFakeGithubRepo) ScopeId() string {
90 return fmt.Sprintf("%d", r.GithubId)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected