Coverage for tsfpga/test/test_utils.py: 80%

5 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-02-21 20:51 +0000

1# -------------------------------------------------------------------------------------------------- 

2# Copyright (c) Lukas Vik. All rights reserved. 

3# 

4# This file is part of the tsfpga project, a project platform for modern FPGA development. 

5# https://tsfpga.com 

6# https://github.com/tsfpga/tsfpga 

7# -------------------------------------------------------------------------------------------------- 

8 

9from tsfpga.system_utils import read_file 

10 

11 

12def file_contains_string(file, string): 

13 return string in read_file(file) 

14 

15 

16def file_equals(file, string): 

17 return string == read_file(file)