-
Notifications
You must be signed in to change notification settings - Fork 19
feat: add initial test file for akuma package #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f038525
d8ec2ef
248bed7
5c85863
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| package akuma | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,3 @@ | ||||||
| module backend_2025_freshman_task | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain模块路径应与仓库真实路径一致(建议使用 GitHub 完整导入路径) 当前为本地名 应用示例修改: -module backend_2025_freshman_task
+module github.com/hduhelp/backend_2025_freshman_task为避免遗漏,请运行以下脚本校验 go.mod 与仓库 URL 是否一致: 🏁 Script executed: #!/bin/bash
set -euo pipefail
repo_url="$(git remote get-url origin 2>/dev/null || true)"
echo "origin: $repo_url"
expected_path="$(echo "$repo_url" | sed -E 's#(git@|https://)([^/:]+)[:/]([^ ]+)(\.git)?#\2/\3#')"
echo "expected module (host/path): $expected_path"
echo -n "go.mod module: "
grep -E '^module ' go.mod || trueLength of output: 193 修复 go.mod 的 module 为仓库完整导入路径(github.com/hduhelp/backend_2025_freshman_task) 验证:origin = https://github.com/hduhelp/backend_2025_freshman_task.git;go.mod = module backend_2025_freshman_task(不一致,无法通过 go get 从 VCS 正确拉取模块)。 文件:go.mod 第1行 建议修改: -module backend_2025_freshman_task
+module github.com/hduhelp/backend_2025_freshman_task📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
|
|
||||||
| go 1.25 | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文件名不符合 Go 测试约定,
go test不会执行测试文件需以
_test.go结尾。当前为test.go,不会被测试框架发现与执行。请重命名为akuma/akuma_test.go。可参考最小可运行骨架:
🤖 Prompt for AI Agents