Documentation ¶
Index ¶
- func CalculateScore(question models.Question, code, language string) (int, []models.VerifiedTestCase, []models.VerifiedTestCase, error)
- func ChangeActive(c *gin.Context)
- func CreateTest(c *gin.Context)
- func GetInstantTest(c *gin.Context)
- func GetSubmissions(c *gin.Context)
- func Submit(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateScore ¶
func CalculateScore(question models.Question, code, language string) (int, []models.VerifiedTestCase, []models.VerifiedTestCase, error)
This function calculates the score for a question returns the score, test cases passed, test cases failed and error if any
func ChangeActive ¶
func CreateTest ¶
func GetInstantTest ¶
func GetSubmissions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.