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

5 statements  

« prev     ^ index     » next       coverage.py v7.6.7, created at 2024-11-20 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 

9# First party libraries 

10from tsfpga.system_utils import read_file 

11 

12 

13def file_contains_string(file, string): 

14 return string in read_file(file) 

15 

16 

17def file_equals(file, string): 

18 return string == read_file(file)