Documentation
¶
Index ¶
- Variables
- func Compliance(t *testing.T, creator *Creator, tree f3_tree.TreeInterface, p string, ...)
- func ComplianceForkedPullRequest(t *testing.T, tree f3_tree.TreeInterface, remap remapper, ...) *f3.PullRequest
- func ComplianceKindTests(t *testing.T, creator *Creator, tree f3_tree.TreeInterface, ...)
- func ComplianceNameTests(t *testing.T, creator *Creator, tree f3_tree.TreeInterface, remap remapper, ...)
- func ComplianceNoBranchPullRequest(t *testing.T, tree f3_tree.TreeInterface, remap remapper, ...) *f3.PullRequest
- func ComplianceReviewRequest(t *testing.T, creator *Creator, tree f3_tree.TreeInterface, remap remapper, ...) *f3.Review
- func ComplianceUserAdmin(t *testing.T, creator *Creator) *f3.User
- func ForgeCompliance(t *testing.T, name string)
- func SetKindWithFixturePath() []kind.Kind
- func TreeBuild(t *testing.T, creator *Creator, opts options.Interface, ...)
- func TreeBuildPartial(t *testing.T, creator *Creator, exceptions []kind.Kind, opts options.Interface, ...)
- func TreeDelete(t *testing.T, nonTestUsers []string, options options.Interface, ...)
- type Creator
- func (f *Creator) Generate(k kind.Kind, parent path.Path) f3.Interface
- func (f *Creator) GenerateAttachment(parent path.Path) *f3.Attachment
- func (f *Creator) GenerateComment(parent path.Path) *f3.Comment
- func (f *Creator) GenerateForge() *f3.Forge
- func (f *Creator) GenerateForkedProject(parent path.Path, forked string) *f3.Project
- func (f *Creator) GenerateIssue(parent path.Path) *f3.Issue
- func (f *Creator) GenerateLabel() *f3.Label
- func (f *Creator) GenerateMilestone() *f3.Milestone
- func (f *Creator) GenerateOrganization() *f3.Organization
- func (f *Creator) GenerateProject() *f3.Project
- func (f *Creator) GeneratePullRequest(parent path.Path) *f3.PullRequest
- func (f *Creator) GenerateReaction(parent path.Path, reaction string) *f3.Reaction
- func (f *Creator) GenerateRelease(parent path.Path) *f3.Release
- func (f *Creator) GenerateRepository(name string) *f3.Repository
- func (f *Creator) GenerateReview(parent path.Path) *f3.Review
- func (f *Creator) GenerateReviewComment(parent path.Path) *f3.ReviewComment
- func (f *Creator) GenerateTopic() *f3.Topic
- func (f *Creator) GenerateUser() *f3.User
- type ModificatorFunc
- type TestingT
Constants ¶
This section is empty.
Variables ¶
View Source
var KindToFixturePath = map[kind.Kind]string{ f3_tree.KindTopics: "/forge/topics", f3_tree.KindTopic: "/forge/topics/14411441", f3_tree.KindUsers: "/forge/users", f3_tree.KindUser: "/forge/users/10111", f3_tree.KindProjects: "/forge/users/10111/projects", f3_tree.KindProject: "/forge/users/10111/projects/74823", f3_tree.KindLabels: "/forge/users/10111/projects/74823/labels", f3_tree.KindLabel: "/forge/users/10111/projects/74823/labels/7777", f3_tree.KindIssues: "/forge/users/10111/projects/74823/issues", f3_tree.KindIssue: "/forge/users/10111/projects/74823/issues/1234567", f3_tree.KindPullRequests: "/forge/users/10111/projects/74823/pull_requests", f3_tree.KindPullRequest: "/forge/users/10111/projects/74823/pull_requests/2222", f3_tree.KindReviews: "/forge/users/10111/projects/74823/pull_requests/2222/reviews", f3_tree.KindReview: "/forge/users/10111/projects/74823/pull_requests/2222/reviews/4593", f3_tree.KindReviewComments: "/forge/users/10111/projects/74823/pull_requests/2222/reviews/4593/reviewcomments", f3_tree.KindReviewComment: "/forge/users/10111/projects/74823/pull_requests/2222/reviews/4593/reviewcomments/9876543", f3_tree.KindMilestones: "/forge/users/10111/projects/74823/milestones", f3_tree.KindMilestone: "/forge/users/10111/projects/74823/milestones/7888", f3_tree.KindReactions: "/forge/users/10111/projects/74823/issues/1234567/reactions", f3_tree.KindReaction: "/forge/users/10111/projects/74823/issues/1234567/reactions/1212", f3_tree.KindComments: "/forge/users/10111/projects/74823/issues/1234567/comments", f3_tree.KindComment: "/forge/users/10111/projects/74823/issues/1234567/comments/1111999", f3_tree.KindRepositories: "/forge/users/10111/projects/74823/repositories", f3_tree.KindRepository: "/forge/users/10111/projects/74823/repositories/vcs", f3_tree.KindReleases: "/forge/users/10111/projects/74823/releases", f3_tree.KindRelease: "/forge/users/10111/projects/74823/releases/123", f3_tree.KindAttachments: "/forge/users/10111/projects/74823/releases/123/attachments", f3_tree.KindAttachment: "/forge/users/10111/projects/74823/releases/123/attachments/585858", f3_tree.KindOrganizations: "/forge/organizations", f3_tree.KindOrganization: "/forge/organizations/3330001", }
View Source
var KindWithFixturePath = SetKindWithFixturePath()
View Source
var RootUser *f3.User = &f3.User{
UserName: "root",
}
Functions ¶
func Compliance ¶ added in v3.10.0
func ComplianceForkedPullRequest ¶ added in v3.10.0
func ComplianceForkedPullRequest(t *testing.T, tree f3_tree.TreeInterface, remap remapper, pullRequest *f3.PullRequest, parent path.Path) *f3.PullRequest
func ComplianceKindTests ¶ added in v3.7.0
func ComplianceNameTests ¶ added in v3.10.0
func ComplianceNoBranchPullRequest ¶ added in v3.11.0
func ComplianceNoBranchPullRequest(t *testing.T, tree f3_tree.TreeInterface, remap remapper, pullRequest *f3.PullRequest, parent path.Path) *f3.PullRequest
func ComplianceReviewRequest ¶ added in v3.11.4
func ComplianceUserAdmin ¶ added in v3.11.4
func ForgeCompliance ¶
func SetKindWithFixturePath ¶
func TreeBuildPartial ¶
func TreeDelete ¶
Types ¶
type Creator ¶
type Creator struct {
// contains filtered or unexported fields
}
func NewCreator ¶
func NewCreator(t TestingT, name string, tree generic.TreeInterface) *Creator
func (*Creator) GenerateAttachment ¶ added in v3.11.0
func (f *Creator) GenerateAttachment(parent path.Path) *f3.Attachment
func (*Creator) GenerateForge ¶
func (*Creator) GenerateForkedProject ¶
func (*Creator) GenerateLabel ¶
func (*Creator) GenerateMilestone ¶
func (*Creator) GenerateOrganization ¶
func (f *Creator) GenerateOrganization() *f3.Organization
func (*Creator) GenerateProject ¶
func (*Creator) GeneratePullRequest ¶
func (f *Creator) GeneratePullRequest(parent path.Path) *f3.PullRequest
func (*Creator) GenerateReaction ¶
func (*Creator) GenerateRepository ¶
func (f *Creator) GenerateRepository(name string) *f3.Repository
func (*Creator) GenerateReviewComment ¶
func (f *Creator) GenerateReviewComment(parent path.Path) *f3.ReviewComment
func (*Creator) GenerateTopic ¶
func (*Creator) GenerateUser ¶
type ModificatorFunc ¶ added in v3.10.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.