1. Project Clover database Fri Jul 17 2026 06:10:26 UTC
  2. Package guru.mikelue.foxglove.setting

File GeneratingUtils.java

 

Coverage histogram

../../../../img/srcFileCovDistChart10.png
0% of files have more coverage

Code metrics

10
12
1
1
38
28
6
0.5
12
1
6

Classes

Class Line # Actions
GeneratingUtils 9 12 0% 6 2
0.913043591.3%
 

Contributing tests

This file is covered by 50 tests. .

Source view

1    package guru.mikelue.foxglove.setting;
2   
3    import java.util.Set;
4   
5    import guru.mikelue.foxglove.ColumnMeta;
6   
7    import static guru.mikelue.foxglove.ColumnMeta.Property.*;
8   
 
9    interface GeneratingUtils {
 
10  930 toggle static boolean checkAutoGenerating(
11    ColumnMeta columnMeta,
12    Set<ColumnMeta.Property> autoGenerateProperties
13    ) {
14  930 var columnProperties = columnMeta.properties();
15   
16  930 if (columnProperties.isEmpty()) {
17  285 return true;
18    }
19   
20  645 if (columnProperties.contains(GENERATED)) {
21  64 return autoGenerateProperties.contains(GENERATED);
22    }
23   
24  581 if (columnProperties.contains(AUTO_INCREMENT)) {
25  63 return autoGenerateProperties.contains(AUTO_INCREMENT);
26    }
27   
28  518 if (columnProperties.contains(NULLABLE)) {
29  292 return autoGenerateProperties.contains(NULLABLE);
30    }
31   
32  226 if (columnProperties.contains(DEFAULT_VALUE)) {
33  226 return autoGenerateProperties.contains(DEFAULT_VALUE);
34    }
35   
36  0 return true;
37    }
38    }