Skip to content

feat: 数据范围实现(model use trait实现) #1623

feat: 数据范围实现(model use trait实现)

feat: 数据范围实现(model use trait实现) #1623

Triggered via pull request March 11, 2025 09:23
Status Failure
Total duration 3m 44s
Artifacts

code-coverage.yml

on: pull_request
Matrix: build Code coverage report
Fit to window
Zoom out
Zoom in

Annotations

6 errors
build Code coverage report (ubuntu-latest, 8.1, v5.1.3): app/Model/Scopes/DataScopeScope.php#L34
Call to an undefined method Hyperf\Database\Model\Model::getDataScope().
build Code coverage report (ubuntu-latest, 8.1, v5.1.3): app/Model/Traits/DataScopeTrait.php#L15
Trait App\Model\Traits\DataScopeTrait is used zero times and is not analysed.
build Code coverage report (ubuntu-latest, 8.1, v5.1.3): app/Schema/PolicySchema.php#L35
Constructor of class App\Schema\PolicySchema has an unused parameter $model.
build Code coverage report (ubuntu-latest, 8.1, v5.1.3): app/Service/Permission/RoleService.php#L80
Variable $entity in empty() always exists and is not falsy.
build Code coverage report (ubuntu-latest, 8.1, v5.1.3): app/Service/Permission/UserService.php#L93
Variable $entity in empty() always exists and is not falsy.
build Code coverage report (ubuntu-latest, 8.1, v5.1.3)
Process completed with exit code 1.