p4lang / p4-constraints

Constraints on P4 objects enforced at runtime
Apache License 2.0
14 stars 7 forks source link

PUBLIC: [p4-constraints] Expose and change the return of ParseP4RTInteger from StatusOr<Integer> to Integer. #117

Closed angelazhang8 closed 10 months ago

angelazhang8 commented 10 months ago

PUBLIC: [p4-constraints] Expose and change the return of ParseP4RTInteger from StatusOr to Integer.

Since ParseP4RTInteger cannot return an error, we modified ParseP4RTInteger to return Integer instead of StatusOr. We made ParseP4RTInteger public so that we can add a test for ParseP4RTInteger.