Geral
Gerência e Qualidade de Software
Semana 4
0

Questão

Marque a alternativa que apresenta apenas tipos de itens apresentados no relatório de cobertura da ferramenta Coverage.py. 

A)

statements(comandos), lacking(faltantes), included(incluídas), total(total). 

B)

statements (comandos), lacking(faltantes), excluded (excluídas), total(total). 

C)

statements(comandos), missing (ausentes), excluded(excluídas), partial(parcial).

D)

statements(comandos), missing(ausentes), included(incluídas), total (total). 

E)

statements (comandos), lacking (faltantes), included(incluídas), partial (parcial). 

function vote(questaoId, value) { window.location.href = "/accounts/login/?next=/questao/1353/"; return; fetch(`/vote/questao/${questaoId}/`, { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-CSRFToken': 'xWkIMSNTIb3lXdS1FHsr5MeV4ouSnC4mMXKVpXhafK9CJhxiA4ElY1c9E1sbHmrO' }, body: JSON.stringify({ value: value }) }) .then(response => response.json()) .then(data => { if (data.success) { document.getElementById(`score-${questaoId}`).textContent = data.score; const upBtn = document.querySelector(`button[onclick="vote(${questaoId}, 1)"]`); const downBtn = document.querySelector(`button[onclick="vote(${questaoId}, -1)"]`); upBtn.classList.remove('active-up'); downBtn.classList.remove('active-down'); if (data.user_vote === 1) upBtn.classList.add('active-up'); if (data.user_vote === -1) downBtn.classList.add('active-down'); } }); }