All files / ee/app/assets/javascripts/codequality_report/store getters.js

100% Statements 6/6
100% Branches 0/0
100% Functions 2/2
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 81x 2x 2x 2x     1x  
export const codequalityIssues = (state) => {
  const { page, perPage } = state.pageInfo;
  const start = (page - 1) * perPage;
  return state.allCodequalityIssues.slice(start, start + perPage);
};
 
export const codequalityIssueTotal = (state) => state.allCodequalityIssues.length;