• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

source-academy / backend / 18dc689a4df4836fc6967bf0f74dc252964bd175-PR-1180

08 Sep 2024 06:14PM UTC coverage: 79.088% (-15.3%) from 94.372%
18dc689a4df4836fc6967bf0f74dc252964bd175-PR-1180

Pull #1180

github

josh1248
Change appropriate routes into admin scope
Pull Request #1180: Transfer groundControl (and admin panel) from staff to admin route

7 of 12 new or added lines in 1 file covered. (58.33%)

499 existing lines in 25 files now uncovered.

2602 of 3290 relevant lines covered (79.09%)

1023.2 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/cadet_web/admin_views/admin_teams_view.ex
1
defmodule CadetWeb.AdminTeamsView do
2
  @moduledoc """
3
  View module for rendering admin teams data in JSON format.
4
  """
5

6
  use CadetWeb, :view
7

8
  @doc """
9
  Renders a list of team formation overviews in JSON format.
10

11
  ## Parameters
12

13
  * `teamFormationOverviews` - A list of team formation overviews to be rendered.
14

15
  """
16
  def render("index.json", %{team_formation_overviews: team_formation_overviews}) do
UNCOV
17
    render_many(team_formation_overviews, CadetWeb.AdminTeamsView, "team_formation_overview.json",
×
18
      as: :team_formation_overview
19
    )
20
  end
21

22
  @doc """
23
  Renders a single team formation overview in JSON format.
24

25
  ## Parameters
26

27
  * `team_formation_overview` - The team formation overview to be rendered.
28

29
  """
30
  def render("team_formation_overview.json", %{team_formation_overview: team_formation_overview}) do
UNCOV
31
    %{
×
UNCOV
32
      teamId: team_formation_overview.teamId,
×
UNCOV
33
      assessmentId: team_formation_overview.assessmentId,
×
UNCOV
34
      assessmentName: team_formation_overview.assessmentName,
×
UNCOV
35
      assessmentType: team_formation_overview.assessmentType,
×
UNCOV
36
      studentIds: team_formation_overview.studentIds,
×
UNCOV
37
      studentNames: team_formation_overview.studentNames
×
38
    }
39
  end
40
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc