helper functions
| Function Name | Operation Type | Description | Arguments | Returns |
|---|---|---|---|---|
createRandomTeam |
Create (Insert) | Creates a random team without a manager for basic test cases. | t *testing.T |
Team |
createRandomTeamWithManager |
Create (Insert) | Creates a random team with a manager user. | t *testing.T |
Team, User |
createRandomSkill |
Create (Insert) | Creates a new skill with is_verified = false. |
t *testing.T |
Skill |
createRandomProject |
Create (Insert) | Creates a random project with a random name. | t *testing.T |
Project |
createRandomUser |
Create (Insert) | Creates a user with a hashed password and random team. | t *testing.T |
User, string (plaintext password) |
createRandomTask |
Create (Insert) | Creates a task tied to a project and assignee. | t *testing.T |
Task |
createRandomUserSkill |
Create (Insert) | Links a random skill to a user with a random proficiency. | t *testing.T |
UserSkill |
createRandomTaskSkill |
Create (Insert) | Adds a required skill to a task (many-to-many). | t *testing.T |
Task, Skill, TaskRequiredSkill |
createRandomSkillAlias |
Create (Insert) | Creates an alias for an existing skill. | t *testing.T |
SkillAlias |
createRandomInvitation |
Create (Insert) | Creates a random invitation with a token and inviter user (status defaults to pending). | t *testing.T |
Invitation |