File |
Mutation score |
# Killed |
# Survived |
# Timeout |
# No coverage |
# Errors |
Total detected |
Total undetected |
Total mutants |
|
---|---|---|---|---|---|---|---|---|---|---|
UserController.js |
|
12/12 | 12 | 0 | 0 | 0 | 0 | 12 | 0 | 12 |
angular.module('juiceShop').controller('UserController', 0[][
'$scope',
'$uibModal',
'$sce',
'UserService',
function ($scope, $uibModal, $sce, userService) 1{
}{
'use strict'
function findAll () 2{
}{
userService.find().then(function (users) 3{
}{
$scope.users = users
for (var i = 0; 4false5i <= $scope.users.length6i >= $scope.users.lengthi < $scope.users.length; 7i--i++) 8{
}{
$scope.users[i].email = $sce.trustAsHtml($scope.users[i].email)
}
}).catch(function (err) 9{
}{
console.log(err)
})
}
findAll()
$scope.showDetail = function (id) 10{
}{
$uibModal.open({
templateUrl: 'views/UserDetail.html',
controller: 'UserDetailsController',
size: 'lg',
resolve: {
id: function () 11{
}{
return id
}
}
})
}
}])