Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move NTP function to ntp package and add ToTime32 #301

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

mengelbart
Copy link
Contributor

Moves all NTP-related functions to the NTP package and adds a function to recover a time.Time from a uint32 encoded NTP timestamp. This allows reusing code for CCFB handling (and testing).

internal/ntp/ntp.go Outdated Show resolved Hide resolved
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.32%. Comparing base (e0e97ec) to head (64e9b7f).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #301      +/-   ##
==========================================
+ Coverage   71.20%   71.32%   +0.11%     
==========================================
  Files          79       79              
  Lines        4529     4526       -3     
==========================================
+ Hits         3225     3228       +3     
+ Misses       1164     1160       -4     
+ Partials      140      138       -2     
Flag Coverage Δ
go 71.32% <100.00%> (+0.11%) ⬆️
wasm 69.35% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aalekseevx aalekseevx self-requested a review January 16, 2025 18:45
internal/ntp/ntp.go Outdated Show resolved Hide resolved
Moves all NTP related functions to the NTP package and adds a function
to recover a time.Time from a uint32 encoded NTP timestamp.
@mengelbart mengelbart merged commit c06f448 into master Jan 27, 2025
15 checks passed
@mengelbart mengelbart deleted the ntp-refactoring branch January 27, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants