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

5 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2022-11-29 20:01 +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://gitlab.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)