{"id":51814,"library":"vektra-mockery-v2","title":"Mockery v2","description":"Mockery is a mock code autogenerator for Go interfaces, supporting testify and other mocking frameworks.","status":"active","version":"2.53.6","language":"go","source_language":null,"source_url":"https://github.com/vektra/mockery","tags":["testing","mock","code-generation","go"],"install":[{"cmd":"go get github.com/vektra/mockery/v2","lang":"bash","label":"Install github.com/vektra/mockery/v2"}],"dependencies":[],"imports":[{"symbol":"mockery","correct":"github.com/vektra/mockery/v2"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/vektra/mockery/v2/pkg\"\n)\n\nfunc main() {\n\tfmt.Println(\"Mockery v2 is a code generator; use via CLI or as a library.\")\n}","lang":"go","description":"Demonstrates importing mockery v2 package (typically used as a CLI tool)."},"warnings":[{"fix":"Review the v2 migration guide and update mockery configuration.","message":"Mockery v2 has breaking changes from v1; configuration and output may differ.","severity":"breaking","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'autogener':8 'code':7,21 'code-gener':20 'framework':17 'generat':22 'go':10,23 'interfac':11 'mock':6,16,19 'mockeri':1,3 'support':12 'test':18 'testifi':13 'v2':2","created_at":"2026-06-15T06:30:57.950017+00:00","updated_at":"2026-06-15T06:30:57.950017+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/vektra/mockery","github":"https://github.com/vektra/mockery","docs":"https://pkg.go.dev/github.com/vektra/mockery/v2#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}