• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wmixvideo / nfe / #6197

20 Jun 2016 11:31AM UTC coverage: 79.109% (+2.5%) from 76.628%
#6197

push

travis-ci

fincatto
Gerador de chave gerando codigo randomico, quando nao informado.

3 of 3 new or added lines in 1 file covered. (100.0%)

352 existing lines in 69 files now uncovered.

4741 of 5993 relevant lines covered (79.11%)

50.56 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.24
/src/main/java/com/fincatto/nfe310/classes/nota/NFNotaInfoRegimeEspecialTributacao.java
1
package com.fincatto.nfe310.classes.nota;
2

3
public enum NFNotaInfoRegimeEspecialTributacao {
5✔
4

5
    MICROEMPRESA_MUNICIPAL("1", "Microempresa municipal"),
1✔
6
    ESTIMATIVA("2", "Estimativa"),
1✔
7
    SOCIEDADE_PROFISSIONAIS("3", "Sociedade profissionais"),
1✔
8
    COOPERATIVA("4", "Cooperativa"),
1✔
9
    MICROEMPRESARIO_INDIVIDUAL_MEI("5", "Microempres\u00e1rio individual MEI"),
1✔
10
    MICROEMPRESARIO_E_EMPRESA_PEQUENOPORTE("6", "Microempres\u00e1rio e empresa de pequeno porte");
1✔
11

12
    private final String codigo;
13
    private final String descricao;
14

15
    NFNotaInfoRegimeEspecialTributacao(final String codigo, final String descricao) {
6✔
16
        this.codigo = codigo;
6✔
17
        this.descricao = descricao;
6✔
18
    }
6✔
19

20
    public String getCodigo() {
21
        return this.codigo;
44✔
22
    }
23

24
    public static NFNotaInfoRegimeEspecialTributacao valueOfCodigo(final String codigo) {
25
        for (final NFNotaInfoRegimeEspecialTributacao tributacao : NFNotaInfoRegimeEspecialTributacao.values()) {
12✔
26
            if (tributacao.getCodigo().equals(codigo)) {
12✔
27
                return tributacao;
4✔
28
            }
29
        }
UNCOV
30
        return null;
×
31
    }
32

33
    @Override
34
    public String toString() {
UNCOV
35
        return codigo + " - " + descricao;
×
36
    }
37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc