Clover icon

Coverage Report

  1. Project Clover database Thu Dec 4 2025 16:11:35 GMT
  2. Package jalview.testutils

File ScopeFunctions.java

 

Coverage histogram

../../img/srcFileCovDistChart5.png
43% of files have more coverage

Code metrics

0
3
3
1
20
16
3
1
1
3
1

Classes

Class Line # Actions
ScopeFunctions 6 3 3
0.550%
 

Contributing tests

No tests hitting this source file were found.

Source view

1    package jalview.testutils;
2   
3    import java.util.function.Consumer;
4    import java.util.function.Supplier;
5   
 
6    public class ScopeFunctions
7    {
 
8  0 toggle private ScopeFunctions() {}
9   
 
10  0 toggle public static <R> R supply(Supplier<? extends R> func)
11    {
12  0 return func.get();
13    }
14   
 
15  8 toggle public static <T> T apply(T context, Consumer<? super T> func)
16    {
17  8 func.accept(context);
18  8 return context;
19    }
20    }