Skip to content

Instantly share code, notes, and snippets.

View mauricioaniche's full-sized avatar

Maurício Aniche mauricioaniche

View GitHub Profile
## Spring Boot testing guidelines
When adding or changing tests in this Spring Boot application, prefer behavior-focused component tests over isolated unit tests. Tests should exercise the application the way production code is invoked, while keeping external dependencies controlled.
### Test from the system boundary
- Tests for request-driven behavior must start from a controller endpoint.
- Do not create isolated tests for services, entities, repositories, mappers, validators, or other classes that are reachable through an endpoint.
- A service class should be covered through controller tests that trigger the service through the HTTP/API boundary.
- Entity behavior, validation, persistence mappings, repository queries, and transactional behavior should be exercised as part of controller-driven tests whenever the behavior is reachable from an endpoint.
@mauricioaniche
mauricioaniche / fogefoge.c
Last active May 5, 2026 18:26
Foge Foge - Versão final
#include <stdio.h>
#include <stdlib.h>
#include "time.h"
#include "fogefoge.h"
#include "mapa.h"
#include "ui.h"
MAPA m;
POSICAO heroi;
int tempilula = 0;
@mauricioaniche
mauricioaniche / fogefoge.c
Last active May 5, 2026 18:25
FogeFoge - Recursividade - Fim
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "fogefoge.h"
#include "mapa.h"
MAPA m;
POSICAO heroi;
int tempilula = 0;
@mauricioaniche
mauricioaniche / fogefoge.c
Last active May 5, 2026 18:22
Foge Foge - Recursividade - Parte 1
#include <stdio.h>
#include <stdlib.h>
#include "time.h"
#include "fogefoge.h"
#include "mapa.h"
MAPA m;
POSICAO heroi;
int tempilula = 0;
@mauricioaniche
mauricioaniche / fogefoge.c
Last active May 5, 2026 18:21
Foge Foge - Coding like a pro - Parte 6
#include <stdio.h>
#include <stdlib.h>
#include "time.h"
#include "fogefoge.h"
#include "mapa.h"
MAPA m;
POSICAO heroi;
@mauricioaniche
mauricioaniche / fogefoge.c
Last active May 5, 2026 18:20
Foge Foge - Coding like a pro - Parte 4
#include <stdio.h>
#include <stdlib.h>
#include "fogefoge.h"
#include "mapa.h"
MAPA m;
POSICAO heroi;
int acabou() {
@mauricioaniche
mauricioaniche / fogefoge.c
Last active May 5, 2026 18:18
Foge Foge - Coding like a pro - Parte 2
#include <stdio.h>
#include <stdlib.h>
#include "fogefoge.h"
#include "mapa.h"
MAPA m;
POSICAO heroi;
int acabou() {
@mauricioaniche
mauricioaniche / fogefoge.c
Last active May 5, 2026 18:16
Foge Foge - Struct - Parte 4
#include <stdio.h>
#include <stdlib.h>
#include "fogefoge.h"
#include "mapa.h"
MAPA m;
POSICAO heroi;
int acabou() {
@mauricioaniche
mauricioaniche / fogefoge.c
Last active May 5, 2026 18:15
Foge Foge - Struct - Parte 3
#include <stdio.h>
#include <stdlib.h>
#include "fogefoge.h"
#include "mapa.h"
MAPA m;
int acabou() {
return 0;
@mauricioaniche
mauricioaniche / fogefoge.c
Created January 26, 2015 20:19
Foge Foge - Matriz - Final
#include <stdio.h>
#include <stdlib.h>
#include "fogefoge.h"
char** mapa;
int linhas;
int colunas;
void lemapa() {
FILE* f;