Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ This guide explains how automation agents and human contributors should work wit
- **Full suite** – `make test-all` runs unit then integration tests sequentially. Set `RUST_LOG=debug` to inspect SQL queries during debugging.
- **Linting and formatting** – Run `cargo fmt` and `cargo clippy --all-targets --all-features` before committing. Resolve new Clippy warnings unless an existing `#![allow]` covers the case.
- **Data verification** – Execute `cargo run -p data_validator` whenever CSVs change and record results in pull requests.
- **IPA coverage audit** – Execute `make ipa-audit` when English or romanized CSV names change. This is a read-only report for `data/2!lines.csv`, `data/3!stations.csv`, and `data/4!types.csv`; it does not fail validation, but highlights unresolved tokens and example names so the IPA dictionary can be extended deliberately.

## gRPC Endpoint Overview
- **Stations** – `GetStationById`, `GetStationByIdList`, `GetStationsByGroupId`, `GetStationsByCoordinates`, `GetStationsByLineId`, `GetStationsByName`, `GetStationsByLineGroupId`. `QueryInteractor` enriches stations with lines, companies, station numbers, and train types.
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# StationAPI Makefile
# Cargoを使ったテスト実行のためのシンプルなタスク定義

.PHONY: test test-unit test-integration test-all clean help
.PHONY: test test-unit test-integration test-all ipa-audit clean help

# デフォルトターゲット
help:
@echo "Available targets:"
@echo " test-unit - Run unit tests only (no database required)"
@echo " test-integration - Run integration tests (requires PostgreSQL)"
@echo " test-all - Run all tests"
@echo " ipa-audit - Print IPA coverage report for English/romanized CSV names"
@echo " test - Alias for test-unit"
@echo " clean - Clean build artifacts"
@echo ""
Expand All @@ -30,6 +31,11 @@ test-integration:
# 全てのテストを実行
test-all: test-unit test-integration

ipa-audit:
@echo "Printing IPA coverage report..."
rustc tools/ipa_audit.rs -o /tmp/stationapi-ipa-audit
/tmp/stationapi-ipa-audit

# デフォルトはユニットテスト
test: test-unit

Expand Down
2 changes: 1 addition & 1 deletion stationapi/proto
Submodule proto updated 1 files
+5 −0 stationapi.proto
Loading
Loading