f3

package
v3.11.52 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 31 Imported by: 0

Documentation

Index

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 Compliance(ctx context.Context, t *testing.T, creator *Creator, tree f3_tree.TreeInterface, path generic.Path)

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 ComplianceKindTests(ctx context.Context, t *testing.T, creator *Creator, tree f3_tree.TreeInterface, paths []generic.Path, exceptions []kind.Kind)

func ComplianceNameTests added in v3.10.0

func ComplianceNameTests(ctx context.Context, t *testing.T, creator *Creator, tree f3_tree.TreeInterface, remap remapper, paths []generic.Path, exceptions []string)

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 ComplianceReviewRequest(ctx context.Context, t *testing.T, creator *Creator, tree f3_tree.TreeInterface, remap remapper, review *f3.Review, parent generic.Path) *f3.Review

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 ComplianceUserAdmin(ctx context.Context, t *testing.T, creator *Creator) *f3.User

func ForgeCompliance

func ForgeCompliance(ctx context.Context, t *testing.T, name string)

func SetKindWithFixturePath

func SetKindWithFixturePath() []kind.Kind

func TreeBuild

func TreeBuild(t *testing.T, creator *Creator, opts options.Interface, tree generic.TreeInterface)

func TreeBuildForge added in v3.11.14

func TreeBuildForge(t *testing.T, creator *Creator, opts options.Interface, tree f3_tree.TreeInterface) (generic.Path, generic.NodeInterface)

func TreeBuildPartial

func TreeBuildPartial(t *testing.T, creator *Creator, exceptions []kind.Kind, opts options.Interface, tree generic.TreeInterface)

func TreeDelete

func TreeDelete(ctx context.Context, t *testing.T, nonTestUsers []string, options options.Interface, tree generic.TreeInterface)

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) Generate

func (f *Creator) Generate(k kind.Kind, parent generic.Path) f3.Interface

func (*Creator) GenerateAttachment added in v3.11.0

func (f *Creator) GenerateAttachment(parent generic.Path) *f3.Attachment

func (*Creator) GenerateComment

func (f *Creator) GenerateComment(parent generic.Path, poster generic.NodeInterface) *f3.Comment

func (*Creator) GenerateForge

func (f *Creator) GenerateForge() *f3.Forge

func (*Creator) GenerateForkedProject

func (f *Creator) GenerateForkedProject(parent generic.Path, forked string) *f3.Project

func (*Creator) GenerateIssue

func (f *Creator) GenerateIssue(parent generic.Path, poster generic.NodeInterface) *f3.Issue

func (*Creator) GenerateLabel

func (f *Creator) GenerateLabel() *f3.Label

func (*Creator) GenerateMilestone

func (f *Creator) GenerateMilestone() *f3.Milestone

func (*Creator) GenerateOrganization

func (f *Creator) GenerateOrganization() *f3.Organization

func (*Creator) GenerateProject

func (f *Creator) GenerateProject() *f3.Project

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 (f *Creator) GenerateReaction(parent generic.Path, reaction string) *f3.Reaction

func (*Creator) GenerateRelease

func (f *Creator) GenerateRelease(parent generic.Path) *f3.Release

func (*Creator) GenerateRepository

func (f *Creator) GenerateRepository() *f3.Repository

func (*Creator) GenerateReview

func (f *Creator) GenerateReview(parent generic.Path) *f3.Review

func (*Creator) GenerateReviewComment

func (f *Creator) GenerateReviewComment(parent generic.Path) *f3.ReviewComment

func (*Creator) GenerateTeam added in v3.11.25

func (f *Creator) GenerateTeam() *f3.Team

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 (f *Creator) GenerateTopic() *f3.Topic

func (*Creator) GenerateUser

func (f *Creator) GenerateUser() *f3.User

type ModificatorFunc added in v3.10.0

type ModificatorFunc func(t *testing.T, f f3.Interface, parent generic.Path) []f3.Interface

type TestingT

type TestingT interface {
	assert.TestingT
	TempDir() string
	Skip(args ...any)
	FailNow()
	Context() context.Context
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL