Documentation
¶
Index ¶
- Variables
- func Compliance(ctx context.Context, t *testing.T, creator *Creator, ...)
- func ComplianceForkedPullRequest(ctx context.Context, t *testing.T, tree f3_tree.TreeInterface, remap remapper, ...) *f3.PullRequest
- func ComplianceKindTests(ctx context.Context, t *testing.T, creator *Creator, ...)
- func ComplianceNameTests(ctx context.Context, t *testing.T, creator *Creator, ...)
- func ComplianceNoBranchPullRequest(ctx context.Context, t *testing.T, tree f3_tree.TreeInterface, remap remapper, ...) *f3.PullRequest
- func ComplianceReviewRequest(ctx context.Context, t *testing.T, creator *Creator, ...) *f3.Review
- func ComplianceURLTests(ctx context.Context, t *testing.T, creator *Creator, ...)
- func ComplianceUserAdmin(ctx context.Context, t *testing.T, creator *Creator) *f3.User
- func ForgeCompliance(ctx context.Context, t *testing.T, name string)
- func SetKindWithFixturePath() []kind.Kind
- func TreeBuild(t *testing.T, creator *Creator, opts options.Interface, ...)
- func TreeBuildForge(t *testing.T, creator *Creator, opts options.Interface, ...) (generic.Path, generic.NodeInterface)
- func TreeBuildPartial(t *testing.T, creator *Creator, exceptions []kind.Kind, opts options.Interface, ...)
- func TreeDelete(ctx context.Context, t *testing.T, nonTestUsers []string, ...)
- type Creator
- func (f *Creator) Generate(k kind.Kind, parent generic.Path) f3.Interface
- func (f *Creator) GenerateAttachment(parent generic.Path) *f3.Attachment
- func (f *Creator) GenerateComment(parent generic.Path, poster generic.NodeInterface) *f3.Comment
- func (f *Creator) GenerateForge() *f3.Forge
- func (f *Creator) GenerateForkedProject(parent generic.Path, forked string) *f3.Project
- func (f *Creator) GenerateIssue(parent generic.Path, poster generic.NodeInterface) *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 generic.Path) *f3.PullRequest
- func (f *Creator) GenerateRandomAttachment(parent generic.Path) *f3.Attachment
- func (f *Creator) GenerateReaction(parent generic.Path, reaction string) *f3.Reaction
- func (f *Creator) GenerateRelease(parent generic.Path) *f3.Release
- func (f *Creator) GenerateRepository() *f3.Repository
- func (f *Creator) GenerateReview(parent generic.Path) *f3.Review
- func (f *Creator) GenerateReviewComment(parent generic.Path) *f3.ReviewComment
- func (f *Creator) GenerateTeam() *f3.Team
- func (f *Creator) GenerateTeamMember(parent generic.Path) *f3.TeamMember
- func (f *Creator) GenerateTeamProject(parent generic.Path) *f3.TeamProject
- 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{ kind.KindTopics: "/forge/topics", kind.KindTopic: "/forge/topics/14411441", kind.KindUsers: "/forge/users", kind.KindUser: "/forge/users/10111", kind.KindProjects: "/forge/users/10111/projects", kind.KindProject: "/forge/users/10111/projects/74823", kind.KindLabels: "/forge/users/10111/projects/74823/labels", kind.KindLabel: "/forge/users/10111/projects/74823/labels/7777", kind.KindIssues: "/forge/users/10111/projects/74823/issues", kind.KindIssue: "/forge/users/10111/projects/74823/issues/1234567", kind.KindPullRequests: "/forge/users/10111/projects/74823/pull_requests", kind.KindPullRequest: "/forge/users/10111/projects/74823/pull_requests/2222", kind.KindReviews: "/forge/users/10111/projects/74823/pull_requests/2222/reviews", kind.KindReview: "/forge/users/10111/projects/74823/pull_requests/2222/reviews/4593", kind.KindReviewComments: "/forge/users/10111/projects/74823/pull_requests/2222/reviews/4593/reviewcomments", kind.KindReviewComment: "/forge/users/10111/projects/74823/pull_requests/2222/reviews/4593/reviewcomments/9876543", kind.KindMilestones: "/forge/users/10111/projects/74823/milestones", kind.KindMilestone: "/forge/users/10111/projects/74823/milestones/7888", kind.KindReactions: "/forge/users/10111/projects/74823/issues/1234567/reactions", kind.KindReaction: "/forge/users/10111/projects/74823/issues/1234567/reactions/1212", kind.KindComments: "/forge/users/10111/projects/74823/issues/1234567/comments", kind.KindComment: "/forge/users/10111/projects/74823/issues/1234567/comments/1111999", kind.KindRepositories: "/forge/users/10111/projects/74823/repositories", kind.KindRepository: "/forge/users/10111/projects/74823/repositories/vcs", kind.KindReleases: "/forge/users/10111/projects/74823/releases", kind.KindRelease: "/forge/users/10111/projects/74823/releases/123", kind.KindAttachments: "/forge/users/10111/projects/74823/releases/123/attachments", kind.KindAttachment: "/forge/users/10111/projects/74823/releases/123/attachments/585858", kind.KindOrganizations: "/forge/organizations", kind.KindOrganization: "/forge/organizations/3330001", kind.KindTeams: "/forge/organizations/3330001/teams", kind.KindTeam: "/forge/organizations/3330001/teams/5555", kind.KindTeamMembers: "/forge/organizations/3330001/teams/5555/teammembers", kind.KindTeamMember: "/forge/organizations/3330001/teams/5555/teammembers/10111", kind.KindTeamProjects: "/forge/organizations/3330001/teams/5555/teamprojects", kind.KindTeamProject: "/forge/organizations/3330001/teams/5555/teamprojects/7482300", }
View Source
var KindWithFixturePath = SetKindWithFixturePath()
View Source
var RootUser *f3.User = (&f3.User{
UserName: "root",
}).Init()
Functions ¶
func Compliance ¶ added in v3.10.0
func ComplianceForkedPullRequest ¶ added in v3.10.0
func ComplianceForkedPullRequest(ctx context.Context, t *testing.T, tree f3_tree.TreeInterface, remap remapper, pullRequest *f3.PullRequest, parent generic.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(ctx context.Context, t *testing.T, tree f3_tree.TreeInterface, remap remapper, pullRequest *f3.PullRequest, parent generic.Path) *f3.PullRequest
func ComplianceReviewRequest ¶ added in v3.11.4
func ComplianceURLTests ¶ added in v3.11.26
func ComplianceURLTests(ctx context.Context, t *testing.T, creator *Creator, tree f3_tree.TreeInterface, remap remapper, fixtures []tests_forge.F3PathFixture)
func ComplianceUserAdmin ¶ added in v3.11.4
func SetKindWithFixturePath ¶
func TreeBuildForge ¶ added in v3.11.14
func TreeBuildPartial ¶
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 generic.Path) *f3.Attachment
func (*Creator) GenerateComment ¶
func (*Creator) GenerateForge ¶
func (*Creator) GenerateForkedProject ¶
func (*Creator) GenerateIssue ¶
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 generic.Path) *f3.PullRequest
func (*Creator) GenerateRandomAttachment ¶ added in v3.11.22
func (f *Creator) GenerateRandomAttachment(parent generic.Path) *f3.Attachment
func (*Creator) GenerateReaction ¶
func (*Creator) GenerateRelease ¶
func (*Creator) GenerateRepository ¶
func (f *Creator) GenerateRepository() *f3.Repository
func (*Creator) GenerateReviewComment ¶
func (f *Creator) GenerateReviewComment(parent generic.Path) *f3.ReviewComment
func (*Creator) GenerateTeam ¶ added in v3.11.25
func (*Creator) GenerateTeamMember ¶ added in v3.11.25
func (f *Creator) GenerateTeamMember(parent generic.Path) *f3.TeamMember
func (*Creator) GenerateTeamProject ¶ added in v3.11.25
func (f *Creator) GenerateTeamProject(parent generic.Path) *f3.TeamProject
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.