Skip to content

Commit

Permalink
FIx racing
Browse files Browse the repository at this point in the history
  • Loading branch information
jlandowner committed Aug 14, 2024
1 parent 44ca5e9 commit dbd501c
Show file tree
Hide file tree
Showing 7 changed files with 410 additions and 385 deletions.
96 changes: 48 additions & 48 deletions coverage.out
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ github.com/jlandowner/helm-chartsnap/pkg/api/v1alpha1/unknown.go:52: String
github.com/jlandowner/helm-chartsnap/pkg/api/v1alpha1/unknown.go:60: MustString 75.0%
github.com/jlandowner/helm-chartsnap/pkg/charts/helm.go:19: Args 100.0%
github.com/jlandowner/helm-chartsnap/pkg/charts/helm.go:35: Execute 100.0%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:27: SetLogger 0.0%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:31: log 100.0%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:54: updateSnapshot 75.0%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:62: prependSnapshotHeader 100.0%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:68: getVersionFromSnapshotFile 66.7%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:78: Snap 70.3%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:148: snapV1 81.2%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:185: snapV2 82.4%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:219: snapV3 75.0%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:254: DefaultSnapshotFilePath 100.0%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:268: SnapshotFileName 100.0%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:276: SnapshotFilePath 100.0%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:31: SetLogger 0.0%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:37: log 100.0%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:62: updateSnapshot 75.0%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:70: prependSnapshotHeader 100.0%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:76: getVersionFromSnapshotFile 66.7%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:86: Snap 70.3%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:156: snapV1 81.2%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:193: snapV2 82.4%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:227: snapV3 75.0%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:262: DefaultSnapshotFilePath 100.0%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:276: SnapshotFileName 100.0%
github.com/jlandowner/helm-chartsnap/pkg/charts/snap.go:284: SnapshotFilePath 100.0%
github.com/jlandowner/helm-chartsnap/pkg/jsonpatch/jsonpatch.go:16: DecodePatchKey 100.0%
github.com/jlandowner/helm-chartsnap/pkg/jsonpatch/jsonpatch.go:20: SplitPathDecoded 100.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/cachefs.go:21: WriteFile 70.0%
Expand All @@ -44,20 +44,20 @@ github.com/jlandowner/helm-chartsnap/pkg/snap/cachefs.go:63: RemoveFile 100.
github.com/jlandowner/helm-chartsnap/pkg/snap/gomega/object_snapshot.go:9: ObjectSnapshot 100.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/gomega/object_snapshot.go:16: RemoveDynamicFields 100.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/gomega/snap.go:21: MatchSnapShot 100.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:17: SetLogger 0.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:21: log 100.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:28: defaultDiffFunc 71.4%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:43: WithDiffFunc 100.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:50: WithSnapshotID 100.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:57: SnapshotMatcher 100.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:79: Match 89.5%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:116: FailureMessage 100.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:122: NegatedFailureMessage 0.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:126: readSnapshot 92.3%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:148: writeSnapshot 72.2%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:186: IsMultiSnapshots 80.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:195: DecodeMultiSnapshots 85.7%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:207: EncodeMultiSnapshots 83.3%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:21: SetLogger 0.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:27: log 100.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:36: defaultDiffFunc 71.4%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:51: WithDiffFunc 100.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:58: WithSnapshotID 100.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:65: SnapshotMatcher 100.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:87: Match 89.5%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:124: FailureMessage 100.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:130: NegatedFailureMessage 0.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:134: readSnapshot 92.3%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:156: writeSnapshot 72.2%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:194: IsMultiSnapshots 80.0%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:203: DecodeMultiSnapshots 85.7%
github.com/jlandowner/helm-chartsnap/pkg/snap/snapshot.go:215: EncodeMultiSnapshots 83.3%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/diff.go:12: MergeDiffOptions 100.0%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/diff.go:26: Diff 100.0%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/diff.go:107: incrementLineN 100.0%
Expand All @@ -70,21 +70,21 @@ github.com/jlandowner/helm-chartsnap/pkg/unstructured/diff.go:143: printDiff
github.com/jlandowner/helm-chartsnap/pkg/unstructured/diff.go:154: printHeader 100.0%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/diff.go:158: findNextKind 80.0%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/diff.go:168: findNextName 87.5%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/unstructured.go:22: SetLogger 0.0%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/unstructured.go:26: log 100.0%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/unstructured.go:33: Encode 77.8%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/unstructured.go:50: Decode 77.3%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/unstructured.go:84: ApplyFixedValue 88.9%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/unstructured.go:103: Replace 75.0%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/unstructured.go:126: StringToUnstructured 100.0%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/unstructured.go:130: BytesToUnstructured 83.3%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/unstructured.go:140: UnstructuredToJSONBytes 100.0%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/unstructured.go:26: SetLogger 0.0%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/unstructured.go:32: log 100.0%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/unstructured.go:41: Encode 77.8%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/unstructured.go:58: Decode 77.3%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/unstructured.go:92: ApplyFixedValue 88.9%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/unstructured.go:111: Replace 75.0%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/unstructured.go:134: StringToUnstructured 100.0%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/unstructured.go:138: BytesToUnstructured 83.3%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/unstructured.go:148: UnstructuredToJSONBytes 100.0%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/v1/legacy.go:16: Encode 85.7%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/v1/legacy.go:30: findKind 83.3%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/v1/legacy.go:42: findName 90.0%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/v1/legacy.go:63: Diff 91.3%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/v1/legacy.go:117: intInRange 40.0%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/v1/legacy.go:127: diffString 75.0%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/v1/legacy.go:63: Diff 47.8%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/v1/legacy.go:117: intInRange 0.0%
github.com/jlandowner/helm-chartsnap/pkg/unstructured/v1/legacy.go:127: diffString 0.0%
github.com/jlandowner/helm-chartsnap/pkg/yaml/diff.go:12: MergeDiffOptions 100.0%
github.com/jlandowner/helm-chartsnap/pkg/yaml/diff.go:26: Diff 92.1%
github.com/jlandowner/helm-chartsnap/pkg/yaml/diff.go:126: incrementLineN 100.0%
Expand All @@ -97,13 +97,13 @@ github.com/jlandowner/helm-chartsnap/pkg/yaml/diff.go:162: printDiff 100.0%
github.com/jlandowner/helm-chartsnap/pkg/yaml/diff.go:173: printHeader 100.0%
github.com/jlandowner/helm-chartsnap/pkg/yaml/diff.go:177: findNextKind 80.0%
github.com/jlandowner/helm-chartsnap/pkg/yaml/diff.go:187: findNextName 87.5%
github.com/jlandowner/helm-chartsnap/pkg/yaml/yaml.go:19: SetLogger 100.0%
github.com/jlandowner/helm-chartsnap/pkg/yaml/yaml.go:23: log 66.7%
github.com/jlandowner/helm-chartsnap/pkg/yaml/yaml.go:30: Encode 100.0%
github.com/jlandowner/helm-chartsnap/pkg/yaml/yaml.go:37: Decode 80.0%
github.com/jlandowner/helm-chartsnap/pkg/yaml/yaml.go:54: decode 100.0%
github.com/jlandowner/helm-chartsnap/pkg/yaml/yaml.go:63: ApplyFixedValueToDynamicFieleds 87.5%
github.com/jlandowner/helm-chartsnap/pkg/yaml/yaml.go:81: convertInvalidYAMLToUnknown 100.0%
github.com/jlandowner/helm-chartsnap/pkg/yaml/yaml.go:97: convertScalerNodeToUnknownNode 100.0%
github.com/jlandowner/helm-chartsnap/pkg/yaml/yaml.go:112: Replace 100.0%
total: (statements) 86.4%
github.com/jlandowner/helm-chartsnap/pkg/yaml/yaml.go:23: SetLogger 0.0%
github.com/jlandowner/helm-chartsnap/pkg/yaml/yaml.go:29: log 100.0%
github.com/jlandowner/helm-chartsnap/pkg/yaml/yaml.go:38: Encode 100.0%
github.com/jlandowner/helm-chartsnap/pkg/yaml/yaml.go:45: Decode 80.0%
github.com/jlandowner/helm-chartsnap/pkg/yaml/yaml.go:62: decode 100.0%
github.com/jlandowner/helm-chartsnap/pkg/yaml/yaml.go:71: ApplyFixedValueToDynamicFieleds 87.5%
github.com/jlandowner/helm-chartsnap/pkg/yaml/yaml.go:89: convertInvalidYAMLToUnknown 100.0%
github.com/jlandowner/helm-chartsnap/pkg/yaml/yaml.go:105: convertScalerNodeToUnknownNode 100.0%
github.com/jlandowner/helm-chartsnap/pkg/yaml/yaml.go:120: Replace 100.0%
total: (statements) 83.7%
Loading

0 comments on commit dbd501c

Please sign in to comment.