-
Notifications
You must be signed in to change notification settings - Fork 41
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
fix: IMEI/IMEISV validation and test cases #30
base: main
Are you sure you want to change the base?
fix: IMEI/IMEISV validation and test cases #30
Conversation
Note
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @williamlin0518 ,
Overall, it's LGTM!
Try to replace NAS
package in free5gc and test the functionalities.
Please report the result here, thanks.
} else { | ||
if len(digitStr) != 16 { | ||
return "", fmt.Errorf("invalid IMEISV length: expected 16 digits, got %d", len(digitStr)) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not validate IMEISV here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested the NAS package integration by:
Running full test suite comparison:
Results:
|
This fix is related to issue #624