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

NVIDIA / gpu-operator / 30602830442
41%
main: 38%

Build:
Build:
LAST BUILD BRANCH: pull-request/2754
DEFAULT BRANCH: main
Ran 31 Jul 2026 04:00AM UTC
Jobs 1
Files 73
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Jul 2026 03:55AM UTC coverage: 40.644%. Remained the same
30602830442

push

github

abrarshivani
Add unit tests for api/versioned/fake clientset

Cover NewSimpleClientset and the generated fake clientset wiring: seeding
the object tracker, CRUD round trips through both group clients, the
default watch reactor delivering Added/Modified/Deleted events, action
recording and ClearActions, reactor interception and fall-through,
panicking on an object type absent from the fake scheme, Tracker being
shared with the typed clients, Discovery returning a FakeDiscovery bound
to the same Fake, IsWatchListSemanticsUnSupported, and the interface
assertions from the generated var block.

Also covers register.go: the package scheme recognising all nvidia kinds
plus the metav1 types, AddToScheme composing into a fresh scheme, and
codecs decoding both group versions.

Assertions are limited to the generated client's own contract rather than
the behaviour of the current client-go fake. DeleteCollection is asserted
through the recorded action (verb, GroupVersionResource, empty namespace,
and the DeleteOptions and ListOptions carried on it) instead of asserting
that nothing is deleted, which would pin a testing.ObjectReaction
implementation detail and break a future Kubernetes upgrade that
implemented it. That limitation is recorded in a comment, and a
reactor-backed test covers real collection deletion.

The watch test asserts the ListOptions the generated client forwards to
tracker.Watch, including the Watch field it sets itself; replay of
pre-existing objects follows from that forwarding and is kept as a
documented corollary.

The unregistered-kind panic uses a private, never-registered test type
rather than corev1.Pod, which would silently stop testing anything if core
types were ever added to this scheme, and asserts the recovered value
satisfies runtime.IsNotRegisteredError so it cannot pass for the wrong
reason. Waits are bounded by a 2s eventTimeout and contexts derive from
t.Context().

Signed-off-by: Abrar Shivani <ashivani@nvidia.com>

5923 of 14573 relevant lines covered (40.64%)

0.46 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30602830442.1 31 Jul 2026 04:00AM UTC 73
40.64
GitHub Action Run
Source Files on build 30602830442
  • Tree
  • List 73
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30602830442
  • c3802d09 on github
  • Prev Build on pull-request/2698 (#30593181003)
  • Next Build on pull-request/2698 (#30603253200)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc