MCPcopy Create free account

hub / github.com/Cawlumm/lyftr / functions

Functions570 in github.com/Cawlumm/lyftr

FunctionTestDeleteSavedFood_success
─── DeleteSavedFood ──────────────────────────────────────────────────────────
backend/controllers/food_test.go:896
FunctionTestDeleteWeightLog_ownershipEnforced
(t *testing.T)
backend/controllers/weight_test.go:395
FunctionTestDeleteWorkout_ownershipEnforced
(t *testing.T)
backend/controllers/workouts_test.go:140
FunctionTestGetDailyStats_empty
─── GetDailyStats ────────────────────────────────────────────────────────────
backend/controllers/food_test.go:408
FunctionTestGetDailyStats_scopedByUser
(t *testing.T)
backend/controllers/food_test.go:459
FunctionTestGetDailyStats_sumsMacrosCorrectly
(t *testing.T)
backend/controllers/food_test.go:426
FunctionTestGetExerciseHistory_empty
(t *testing.T)
backend/controllers/exercises_test.go:148
FunctionTestGetExerciseHistory_returnsSessionsGrouped
(t *testing.T)
backend/controllers/exercises_test.go:170
FunctionTestGetExercisePRs_ignoresWarmup
(t *testing.T)
backend/controllers/exercises_test.go:89
FunctionTestGetExercisePRs_invalidID
(t *testing.T)
backend/controllers/exercises_test.go:135
FunctionTestGetExercisePRs_isolatesUser
(t *testing.T)
backend/controllers/exercises_test.go:111
FunctionTestGetExercisePRs_noHistory
(t *testing.T)
backend/controllers/exercises_test.go:39
FunctionTestGetExercisePRs_returnsBestSet
(t *testing.T)
backend/controllers/exercises_test.go:57
FunctionTestGetFoodHistory_defaultsDaysTo30
(t *testing.T)
backend/controllers/food_test.go:529
FunctionTestGetFoodHistory_empty
─── GetFoodHistory ───────────────────────────────────────────────────────────
backend/controllers/food_test.go:481
FunctionTestGetFoodHistory_groupsByDay
(t *testing.T)
backend/controllers/food_test.go:498
FunctionTestGetFoodLog_invalidID
(t *testing.T)
backend/controllers/food_test.go:163
FunctionTestGetFoodLog_ownershipEnforced
(t *testing.T)
backend/controllers/food_test.go:148
FunctionTestGetFoodLog_success
─── GetFoodLog ───────────────────────────────────────────────────────────────
backend/controllers/food_test.go:129
FunctionTestGetMe_deletedAccountReturns401
TestGetMe_deletedAccountReturns401 covers the review fix: GetMe used to fall through utils.DBError (which ignores sql.ErrNoRows) and return 200 with a
backend/controllers/review_fixes_test.go:11
FunctionTestGetProgram_ownershipEnforced
(t *testing.T)
backend/controllers/programs_test.go:96
FunctionTestGetWeightStats_latestPrefersNewestSameDay
(t *testing.T)
backend/controllers/weight_test.go:99
FunctionTestGetWeightStats_noData
(t *testing.T)
backend/controllers/weight_test.go:459
FunctionTestGetWeightStats_richFields
(t *testing.T)
backend/controllers/weight_test.go:416
FunctionTestGetWorkout_ownershipEnforced
(t *testing.T)
backend/controllers/workouts_test.go:116
FunctionTestListFoodLogs_empty
─── ListFoodLogs ─────────────────────────────────────────────────────────────
backend/controllers/food_test.go:80
FunctionTestListFoodLogs_scopedByDateAndUser
(t *testing.T)
backend/controllers/food_test.go:97
FunctionTestListProgramsConcurrentDoesNotExhaustPool
TestListProgramsConcurrentDoesNotExhaustPool is the program-side twin of the workout test above (ProgramStore.loadExercises uses the same close-then-l
backend/controllers/concurrency_test.go:78
FunctionTestListPrograms_empty
(t *testing.T)
backend/controllers/programs_test.go:11
FunctionTestListPrograms_filtersBySearchQuery
(t *testing.T)
backend/controllers/programs_test.go:222
FunctionTestListSavedFoods_alphabeticalAndScopedByUser
(t *testing.T)
backend/controllers/food_test.go:823
FunctionTestListSavedFoods_empty
─── ListSavedFoods ───────────────────────────────────────────────────────────
backend/controllers/food_test.go:806
FunctionTestListWeightLogs_dateRange
(t *testing.T)
backend/controllers/weight_test.go:119
FunctionTestListWeightLogs_dateRangeExactRFC3339
Regression: an RFC3339 timestamp must be honored exactly without any TZ padding. Callers that pass precise bounds expect exclusive control.
backend/controllers/weight_test.go:171
FunctionTestListWeightLogs_dateRangeWestTimezone
Regression: a YYYY-MM-DD `to` should include entries logged late on that day for users in west-of-UTC timezones. Their `${date}T12:00:00` local stored
backend/controllers/weight_test.go:146
FunctionTestListWeightLogs_empty
(t *testing.T)
backend/controllers/weight_test.go:25
FunctionTestListWeightLogs_orderedDescAndScopedByUser
(t *testing.T)
backend/controllers/weight_test.go:42
FunctionTestListWeightLogs_sameDayNewestFirst
Regression: multiple logs on the same calendar day share an identical logged_at (the frontend stamps every same-day entry at noon). Without an `id` ti
backend/controllers/weight_test.go:76
FunctionTestListWorkoutsConcurrentDoesNotExhaustPool
Regression test for #30: list handlers used to run nested queries while a parent rows cursor was still open, so each request needed multiple pool conn
backend/controllers/concurrency_test.go:18
FunctionTestListWorkouts_empty
(t *testing.T)
backend/controllers/workouts_test.go:11
FunctionTestListWorkouts_filtersBySearchQuery
(t *testing.T)
backend/controllers/workouts_test.go:234
FunctionTestListWorkouts_limitCap
(t *testing.T)
backend/controllers/workouts_test.go:206
FunctionTestLogFood_barcodeTooLong
(t *testing.T)
backend/controllers/food_test.go:276
FunctionTestLogFood_defaultsServingsToOne
(t *testing.T)
backend/controllers/food_test.go:209
FunctionTestLogFood_imageURLTooLong
(t *testing.T)
backend/controllers/food_test.go:259
FunctionTestLogFood_missingName
(t *testing.T)
backend/controllers/food_test.go:230
FunctionTestLogFood_nameTooLong
(t *testing.T)
backend/controllers/food_test.go:243
FunctionTestLogFood_success
─── LogFood ──────────────────────────────────────────────────────────────────
backend/controllers/food_test.go:178
FunctionTestLogWeight_differentDaysCoexist
Different days still create separate entries.
backend/controllers/weight_test.go:255
FunctionTestLogWeight_normalizesOffsetToUTC
A client-supplied non-UTC offset timestamp must not 500; it's normalized to UTC (a non-UTC time.Time otherwise fails to scan back from SQLite).
backend/controllers/weight_test.go:276
FunctionTestLogWeight_rejectsImplausiblyLarge
(t *testing.T)
backend/controllers/weight_test.go:306
FunctionTestLogWeight_rejectsNonPositive
(t *testing.T)
backend/controllers/weight_test.go:293
FunctionTestLogWeight_sameDayUpdatesInPlace
One weight per calendar day: re-logging a day the user already logged updates that entry in place rather than creating a duplicate.
backend/controllers/weight_test.go:215
FunctionTestLogWeight_success
(t *testing.T)
backend/controllers/weight_test.go:192
FunctionTestLookupBarcode_invalidFormat
─── LookupBarcode ────────────────────────────────────────────────────────────
backend/controllers/food_test.go:654
FunctionTestLookupBarcode_productNotFound
(t *testing.T)
backend/controllers/food_test.go:695
FunctionTestLookupBarcode_rateLimited
(t *testing.T)
backend/controllers/food_test.go:713
FunctionTestLookupBarcode_success
(t *testing.T)
backend/controllers/food_test.go:668
FunctionTestOffBrands_arrayInput
(t *testing.T)
backend/controllers/food_test.go:557
FunctionTestOffBrands_nullInput
(t *testing.T)
backend/controllers/food_test.go:567
FunctionTestOffBrands_stringInput
─── offBrands.UnmarshalJSON ──────────────────────────────────────────────────
backend/controllers/food_test.go:547
FunctionTestOffProductToResult_fallsBackTo100g
(t *testing.T)
backend/controllers/food_test.go:603
FunctionTestOffProductToResult_joinsMultipleBrands
(t *testing.T)
backend/controllers/food_test.go:641
FunctionTestOffProductToResult_rejectsJavascriptImageURL
(t *testing.T)
backend/controllers/food_test.go:630
FunctionTestOffProductToResult_rejectsNonHTTPSImageURL
(t *testing.T)
backend/controllers/food_test.go:619
FunctionTestOffProductToResult_usesServingWhenAvailable
─── offProductToResult ───────────────────────────────────────────────────────
backend/controllers/food_test.go:579
FunctionTestParseOrigins
(t *testing.T)
backend/routes/cors_test.go:9
FunctionTestProgramRestSecondsRoundTrips
(t *testing.T)
backend/controllers/rest_timer_test.go:31
FunctionTestRegister_duplicateEmailReturns409
TestRegister_duplicateEmailReturns409 confirms a genuine duplicate is still a conflict, and is now distinguishable from the lock case above.
backend/controllers/sqlite_lock_test.go:70
FunctionTestRegister_lockedDBReturns503
TestRegister_lockedDBReturns503 reproduces issue #25: when the database is locked, Register must return a retryable 503 — not a misleading "email alre
backend/controllers/sqlite_lock_test.go:41
FunctionTestSearchFood_missingQuery
─── SearchFood ───────────────────────────────────────────────────────────────
backend/controllers/food_test.go:732
FunctionTestSearchFood_rateLimited
(t *testing.T)
backend/controllers/food_test.go:772
FunctionTestSearchFood_success
(t *testing.T)
backend/controllers/food_test.go:744
FunctionTestSearchFood_upstreamError
(t *testing.T)
backend/controllers/food_test.go:788
FunctionTestServerInfo
(t *testing.T)
backend/controllers/server_test.go:10
FunctionTestUpdateFoodLog_notFound
(t *testing.T)
backend/controllers/food_test.go:348
FunctionTestUpdateFoodLog_ownershipEnforced
(t *testing.T)
backend/controllers/food_test.go:324
FunctionTestUpdateFoodLog_success
─── UpdateFoodLog ────────────────────────────────────────────────────────────
backend/controllers/food_test.go:295
FunctionTestUpdateProgram_replacesExercises
(t *testing.T)
backend/controllers/programs_test.go:138
FunctionTestUpdateWeightLog_dedupsOnTargetDay
Editing an entry's date onto a day that already has another entry keeps the day to a single entry (the edited one) — consistent with the log-time upse
backend/controllers/weight_test.go:344
FunctionTestUpdateWeightLog_ownershipEnforced
(t *testing.T)
backend/controllers/weight_test.go:373
FunctionTestUpdateWeightLog_success
(t *testing.T)
backend/controllers/weight_test.go:319
FunctionTestUpdateWorkout_preservesStartedAt
(t *testing.T)
backend/controllers/workouts_test.go:168
FunctionTestWorkoutRestSecondsRoundTrips
Per-exercise rest_seconds (#33) must persist through create + the re-read load.
backend/controllers/rest_timer_test.go:9
FunctionTooltip
({ content, children, side = 'top' }: TooltipProps)
web/src/components/Tooltip.tsx:10
FunctionTopBar
({ onBack, s }: { onBack: () => void; s: types.ActiveSession })
web/src/pages/GymModeWorkout.tsx:129
FunctionTrendChart
({ points, wUnit }: { points: ChartPoint[]; wUnit: string })
web/src/pages/Weight.tsx:52
FunctionUnauthorized
(c *gin.Context, msg string)
backend/utils/response.go:21
MethodUnmarshalJSON
(data []byte)
backend/controllers/food.go:214
MethodUpdate
Update edits an entry the user owns (sql.ErrNoRows if not theirs), then drops any other same-day entry so the day keeps a single entry. req.LoggedAt U
backend/stores/weight.go:128
MethodUpdate
Update replaces a user-owned program and its children in one tx. sql.ErrNoRows if the program isn't theirs (nothing is mutated).
backend/stores/program.go:121
MethodUpdate
Update replaces a user-owned workout and its children in one tx. sql.ErrNoRows if the workout isn't theirs (nothing is mutated).
backend/stores/workout.go:126
MethodUpdateSettings
(c *gin.Context)
backend/controllers/user.go:42
MethodUpsertActiveSession
(c *gin.Context)
backend/controllers/active_session.go:24
FunctionUserID
(c *gin.Context)
backend/middleware/auth.go:41
FunctionUserMenu
()
web/src/components/Layout.tsx:97
FunctionValidateToken
(tokenStr string)
backend/utils/jwt.go:46
FunctionValidationError
(c *gin.Context, err error)
backend/utils/response.go:33
FunctionVersion
Version returns the build-time version. Unlike C.Version it needs no Load(), so the --version flag can report it without touching env or the database.
backend/config/config.go:40
FunctionWeight
()
web/src/pages/Weight.tsx:208
← previousnext →401–500 of 570, ranked by callers