mirror of
https://github.com/ivuorinen/gibidify.git
synced 2026-03-05 18:57:12 +00:00
feat: update go to 1.25, add permissions and envs (#49)
* chore(ci): update go to 1.25, add permissions and envs * fix(ci): update pr-lint.yml * chore: update go, fix linting * fix: tests and linting * fix(lint): lint fixes, renovate should now pass * fix: updates, security upgrades * chore: workflow updates, lint * fix: more lint, checkmake, and other fixes * fix: more lint, convert scripts to POSIX compliant * fix: simplify codeql workflow * tests: increase test coverage, fix found issues * fix(lint): editorconfig checking, add to linters * fix(lint): shellcheck, add to linters * fix(lint): apply cr comment suggestions * fix(ci): remove step-security/harden-runner * fix(lint): remove duplication, apply cr fixes * fix(ci): tests in CI/CD pipeline * chore(lint): deduplication of strings * fix(lint): apply cr comment suggestions * fix(ci): actionlint * fix(lint): apply cr comment suggestions * chore: lint, add deps management
This commit is contained in:
18
gibidiutils/test_constants.go
Normal file
18
gibidiutils/test_constants.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package gibidiutils
|
||||
|
||||
// Test constants to avoid duplication in test files.
|
||||
// These constants are used across multiple test files in the gibidiutils package.
|
||||
const (
|
||||
// Error messages
|
||||
|
||||
testErrFileNotFound = "file not found"
|
||||
testErrWriteFailed = "write failed"
|
||||
testErrInvalidFormat = "invalid format"
|
||||
|
||||
// Path validation messages
|
||||
|
||||
testEmptyPath = "empty path"
|
||||
testPathTraversal = "path traversal"
|
||||
testPathTraversalAttempt = "path traversal attempt"
|
||||
testPathTraversalDetected = "path traversal attempt detected"
|
||||
)
|
||||
Reference in New Issue
Block a user