This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.guiathayde.basketscorekotlin | |
| import androidx.compose.runtime.getValue | |
| import androidx.compose.runtime.mutableIntStateOf | |
| import androidx.compose.runtime.mutableStateOf | |
| import androidx.compose.runtime.setValue | |
| import androidx.lifecycle.ViewModel | |
| data class Play(val team: Int, val points: Int) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.guiathayde.lib | |
| import kotlinx.coroutines.Deferred | |
| import kotlinx.coroutines.Dispatchers | |
| import kotlinx.coroutines.async | |
| import kotlinx.coroutines.awaitAll | |
| import kotlinx.coroutines.delay | |
| import kotlinx.coroutines.launch | |
| import kotlinx.coroutines.runBlocking | |
| import kotlin.random.Random |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.guiathayde.basketscore; | |
| import android.os.Bundle; | |
| import android.widget.Button; | |
| import android.widget.TextView; | |
| import androidx.activity.EdgeToEdge; | |
| import androidx.appcompat.app.AppCompatActivity; | |
| import androidx.core.graphics.Insets; | |
| import androidx.core.view.ViewCompat; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ### Inicio testes caixa-branca ### | |
| // Ex7 | |
| /** | |
| * Grafo de Fluxo de Controle do método enviarPara(..): | |
| * Nós: | |
| * 1: Início | |
| * 2: if (nomes == null) | |
| * 3: usuarios = usuarioDAO.getAllUsuarios() | |
| * 4: if (usuarios == null || usuarios.size() == 0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.example.s03.ex4; | |
| import org.junit.jupiter.api.BeforeEach; | |
| import org.junit.jupiter.api.Test; | |
| import org.mockito.Mock; | |
| import org.mockito.MockitoAnnotations; | |
| import java.util.ArrayList; | |
| import static org.junit.jupiter.api.Assertions.assertEquals; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.example.s03.ex3; | |
| import org.junit.jupiter.api.BeforeEach; | |
| import org.junit.jupiter.api.Test; | |
| import org.junit.jupiter.api.extension.ExtendWith; | |
| import org.mockito.Mock; | |
| import org.mockito.junit.jupiter.MockitoExtension; | |
| import static org.junit.jupiter.api.Assertions.assertEquals; | |
| import static org.mockito.Mockito.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.example.s03.ex2; | |
| import org.junit.jupiter.api.BeforeEach; | |
| import org.junit.jupiter.api.Test; | |
| import org.mockito.Mock; | |
| import org.mockito.MockitoAnnotations; | |
| import static org.junit.jupiter.api.Assertions.assertEquals; | |
| import static org.mockito.Mockito.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import mimetypes | |
| from typing import Optional | |
| import os | |
| from urllib.parse import urlencode, quote | |
| # ==== Exceptions ==== | |
| class TokenExchangeError(Exception): | |
| pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.example.s01.ex5; | |
| import org.junit.jupiter.api.Test; | |
| import java.util.ArrayList; | |
| import static org.junit.jupiter.api.Assertions.*; | |
| public class AnalisadorTest { | |
| @Test | |
| public void testAnalisarComListaNulaOuVazia() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.example.s01.ex4; | |
| import org.junit.jupiter.api.Test; | |
| import static org.junit.jupiter.api.Assertions.*; | |
| public class ClassificadorTest { | |
| @Test | |
| public void testDefinirFaixaEtariaComIdadeInvalida() { | |
| Classificador classificador = new Classificador(); |
NewerOlder