cloudfoundry/stratos

View on GitHub
src/frontend/packages/store/testing/src/store-test-helper.ts

Summary

Maintainability
A
0 mins
Test Coverage

File store-test-helper.ts has 415 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

import { ModuleWithProviders } from '@angular/core';
import { TestBed } from '@angular/core/testing';
import { Store, StoreModule, StoreRootModule } from '@ngrx/store';
import {
  appReducers,
Severity: Minor
Found in src/frontend/packages/store/testing/src/store-test-helper.ts - About 5 hrs to fix

    Function getDefaultInitialTestStoreState has 127 lines of code (exceeds 25 allowed). Consider refactoring.
    Wontfix

    function getDefaultInitialTestStoreState(): AppState<BaseEntityValues> {
      return {
        ...getDefaultInitialTestStratosStoreState(),
        pagination: {
          system: {},
    Severity: Major
    Found in src/frontend/packages/store/testing/src/store-test-helper.ts - About 5 hrs to fix

      Function getDefaultInitialTestStratosStoreState has 82 lines of code (exceeds 25 allowed). Consider refactoring.
      Wontfix

      function getDefaultInitialTestStratosStoreState() {
        return {
          recentlyVisited: {},
          userFavoritesGroups: {
            busy: false,
      Severity: Major
      Found in src/frontend/packages/store/testing/src/store-test-helper.ts - About 3 hrs to fix

        There are no issues that match your filters.

        Category
        Status