• 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_user_view.ex
1
defmodule CadetWeb.AdminUserView do
2
  use CadetWeb, :view
3

4
  def render("users.json", %{users: users}) do
UNCOV
5
    render_many(users, CadetWeb.AdminUserView, "cr.json", as: :cr)
×
6
  end
7

8
  def render("get_students.json", %{users: users}) do
9
    render_many(users, CadetWeb.AdminUserView, "students.json", as: :students)
×
10
  end
11

12
  def render("cr.json", %{cr: cr}) do
UNCOV
13
    %{
×
UNCOV
14
      courseRegId: cr.id,
×
UNCOV
15
      course_id: cr.course_id,
×
UNCOV
16
      name: cr.user.name,
×
UNCOV
17
      provider: cr.user.provider,
×
UNCOV
18
      username: cr.user.username,
×
UNCOV
19
      role: cr.role,
×
20
      group:
UNCOV
21
        case cr.group do
×
UNCOV
22
          nil -> nil
×
UNCOV
23
          _ -> cr.group.name
×
24
        end
25
    }
26
  end
27

28
  def render("students.json", %{students: students}) do
29
    %{
×
30
      userId: students.id,
×
31
      name: students.user.name,
×
32
      username: students.user.username
×
33
    }
34
  end
35
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