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

nolar / kopf / 38 / 10
85%
main: 0%

Build:
Build:
LAST BUILD BRANCH: refactor/fix-typo
DEFAULT BRANCH: main
Ran 23 Aug 2020 11:31PM UTC
Files 56
Run time 2s
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

23 Aug 2020 11:14PM UTC coverage: 84.385%. First build
CHANGE_MINIKUBE_NONE_USER=true KUBECONFIG=$HOME/.kube/config MINIKUBE_WANTUPDATENOTIFICATION=false MINIKUBE_WANTREPORTERRORPROMPT=false MINIKUBE_IN_STYLE=true MINIKUBE_HOME=$HOME MINIKUBE_VERSION=latest KUBERNETES_VERSION=latest CLIENT=no

push

travis-ci

nolar
Select the field-handlers based on actual diff of that field present

Filtering only by diff's fields without actual diff values checked
was used since the initial import and release of the framework, and
was only modified in #340 by extending the filtering logic to react
to sub-fields of a bigger structure changed (for example, for a
field "spec.struct.field" when "spec.struct" is added at once).

Yet such an approach is prone to improper detection of actually
changed fields, as documented in #375: when a bigger struct is added
while we expect a non-existent sub-field of it, it is believed to
exist there, as the sub-field matches the bigger struct; in particular,
when an object is created, it is a root-level diff from `None` to actual
content, and all the non-existent fields trigger their field handlers.

By checking if the actual diff of a specific field is not empty, we
can properly detect if that specific field was added, removed, or changed,
be that as a part of a bigger (containing) structure change, or as a change
in any of its (contained) sub-fields.

This comes at a cost of performance loss: the diff reduction is less performant
than a flat iteration over the diff fields: from 20% to 150% (2.5x) slower.
However, the scale of the slowdown is measured in 5-10s per 1'000'000 checks
on MacBook Air 2013, so we can consider it negligible for real operators.

1017 of 1272 branches covered (79.95%)

Branch coverage included in aggregate %.

3301 of 3845 relevant lines covered (85.85%)

0.86 hits per line

Source Files on job 38.10 (CHANGE_MINIKUBE_NONE_USER=true KUBECONFIG=$HOME/.kube/config MINIKUBE_WANTUPDATENOTIFICATION=false MINIKUBE_WANTREPORTERRORPROMPT=false MINIKUBE_IN_STYLE=true MINIKUBE_HOME=$HOME MINIKUBE_VERSION=latest KUBERNETES_VERSION=latest CLIENT=no)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 838
  • Travis Job 38.10
  • 4673e964 on github
  • Next Job for CHANGE_MINIKUBE_NONE_USER=true KUBECONFIG=$HOME/.kube/config MINIKUBE_WANTUPDATENOTIFICATION=false MINIKUBE_WANTREPORTERRORPROMPT=false MINIKUBE_IN_STYLE=true MINIKUBE_HOME=$HOME MINIKUBE_VERSION=latest KUBERNETES_VERSION=latest CLIENT=no on nonexistent-fields-triggered (#41.2)
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