github.com/polarismesh/polaris@v1.17.8/store/mock/README.md (about) 1 # 对Store的API的mock 2 3 ## mock文件生成方法 4 5 在`./store`目录执行 6 7 ``` 8 mockgen -source=api.go -aux_files github.com/polarismesh/polaris/store=config_file_api.go,github.com/polarismesh/polaris/store=discover_api.go,github.com/polarismesh/polaris/store=auth_api.go,github.com/polarismesh/polaris/store=admin_api.go -destination=mock/api_mock.go -package=mock 9 10 mockgen -source=mysql/admin.go -destination=mock/admin_mock.go -package=mock 11 ```