Skip to content

Commit

Permalink
Add Unit Tests for shared_utils.py (riscv#309)
Browse files Browse the repository at this point in the history
* Added test cases for shared_utils

Signed-off-by: Aditya Mohan <[email protected]>

* Added definition for logging an error shared_utils.py

Signed-off-by: Jay Dev Jha <[email protected]>

* Pre-commit fixes for shared_utils.py

Signed-off-by: Jay Dev Jha <[email protected]>

* pyright fixes for test.py

Signed-off-by: Jay Dev Jha <[email protected]>

* Minor changes to shared_utils.py

Signed-off-by: Jay Dev Jha <[email protected]>

* Updated test.py

Signed-off-by: Jay Dev Jha <[email protected]>

---------

Signed-off-by: Aditya Mohan <[email protected]>
Signed-off-by: Jay Dev Jha <[email protected]>
Co-authored-by: Jay Dev Jha <[email protected]>
  • Loading branch information
2 people authored and Myrausman committed Nov 14, 2024
1 parent 3636a88 commit b04ee1f
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,7 @@
import unittest
from unittest.mock import Mock, patch

from shared_utils import (
InstrDict,
check_arg_lut,
check_overlapping_bits,
extract_isa_type,
find_extension_file,
handle_arg_lut_mapping,
initialize_encoding,
is_rv_variant,
overlaps,
pad_to_equal_length,
parse_instruction_line,
process_enc_line,
process_fixed_ranges,
process_standard_instructions,
same_base_isa,
update_encoding_for_fixed_range,
validate_bit_range,
)
from shared_utils import *


class EncodingUtilsTest(unittest.TestCase):
Expand Down

0 comments on commit b04ee1f

Please sign in to comment.