Stryker

UserController.js - Stryker report

Summary

File
Mutation score
# Killed
# Survived
# Timeout
# No coverage
# Errors
Total detected
Total undetected
Total mutants
UserController.js
100%
12/12 12 0 0 0 0 12 0 12

Code

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; 456i < $scope.users.length; 7i++) 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
          }
        }
      })
    }
  }])