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

ConsolinnoEnergy / spine-go
94%

Build:
DEFAULT BRANCH: dev
Repo Added 22 Aug 2025 01:22PM UTC
Token inTULYflrTK333wBqkm4VKe6X4HWsm7Uo regen
Build 7 Last
Files 61
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

LAST BUILD ON BRANCH dev
branch: dev
CHANGE BRANCH
x
Reset
Sync Branches
  • dev
  • feature/ohcpf-extension-spine

22 Aug 2025 03:56PM UTC coverage: 94.0% (-0.03%) from 94.034%
17200674997

push

github

web-flow
๐Ÿ› fix: add cmdFunction parameter to FilterType.Data() for partial filter handling (#67)

This critical fix addresses type confusion vulnerabilities and improves
SPINE protocol compliance by properly handling partial filters without
selectors.

## Changes:
- **BREAKING**: FilterType.Data() now requires cmdFunction parameter
- Add cmdFunction parameter to all UpdateList implementations (30+
files)
- Fix critical bug where UpdateList returned slices instead of complete
structs
- Add validation helpers for cmd.Function consistency checking
- Add comprehensive test coverage for function mismatches and edge cases

## Security Improvements:
- Prevent type confusion attacks where cmd.Function doesn't match filter
functions
- Proper fallback to cmdFunction for partial filters without selectors
- Validation methods to detect and report function inconsistencies

## Bug Fixes:
- Fix panic in TestLoadControlLimitListDataType_Update (line 126)
- Correct partial filter logic that incorrectly used selector path when
no selectors present
- Return complete structs from UpdateList, not just data slices
- Fix incorrect field names in multiple *_additions.go files

## Spec Compliance:
- Properly implements SPINE Table 6/7 requirements for partial updates
- Handles "copy to all" pattern when identifiers are missing
- Supports valid partial filters without selectors (meaning "all
fields")

## Testing:
- Add cmd_function_filter_mismatch_test.go for security validation
- Add cmd_validation_additions_test.go for consistency checks
- Add device_local_validation_test.go for local device validation
- Update all existing tests to use new cmdFunction parameter

BREAKING CHANGE: FilterType.Data() signature changed to require
cmdFunction parameter. All code using FilterType.Data() must be updated
to pass the cmdFunction.

310 of 322 new or added lines in 32 files covered. (96.27%)

5609 of 5967 relevant lines covered (94.0%)

28552.99 hits per line

Relevant lines Covered
Build:
Build:
5967 RELEVANT LINES 5609 COVERED LINES
28552.99 HITS PER LINE
Source Files on dev
  • Tree
  • List 61
  • Changed 31
  • Source Changed 31
  • Coverage Changed 4
Coverage โˆ† File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
17200674997 dev ๐Ÿ› fix: add cmdFunction parameter to FilterType.Data() for partial filter handling (#67) This critical fix addresses type confusion vulnerabilities and improves SPINE protocol compliance by properly handling partial filters without selectors. ## ... push 25 Aug 2025 06:11AM UTC web-flow github
94.0
17156431070 dev โœจ feat: implement smart list update filtering to prevent duplicate entries (#66) This commit introduces intelligent filtering for SPINE list updates that prevents duplicate and low-quality entries by distinguishing between meaningful data updates... push 22 Aug 2025 01:22PM UTC web-flow github
94.03
See All Builds (7)

Badge your Repo: spine-go

We detected this repo isnโ€™t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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

© 2026 Coveralls, Inc