CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/golang-gorm-io--gorm

Full-featured ORM library for Golang with associations, hooks, transactions, migrations, and developer-friendly chainable API

Overall
score

81%

Overview
Eval results
Files

rubric.jsonevals/scenario-4/

{
  "context": "This evaluation assesses how well the engineer uses GORM's callback registration and ordering system to implement automatic audit logging. The focus is on proper use of callback functions, callback registration methods, and understanding callback execution timing.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Callback Registration",
      "description": "Uses db.Callback() to access the callback processor and registers custom callbacks using Register() method for both Create and Update operations",
      "max_score": 30
    },
    {
      "name": "Callback Timing",
      "description": "Registers callbacks with 'After' timing (e.g., 'gorm:after_create', 'gorm:after_update') to ensure audit logs are created after the main operation completes successfully",
      "max_score": 25
    },
    {
      "name": "Callback Function",
      "description": "Implements callback functions that accept *gorm.DB parameter and properly extract model data using db.Statement to populate AuditLog records",
      "max_score": 25
    },
    {
      "name": "Query Implementation",
      "description": "Uses GORM query methods (Where, Order, Find) to retrieve audit logs filtered by EntityID and ordered by Timestamp descending",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/golang-gorm-io--gorm

tile.json