Skip to content

test(admin): 100% lines and mutation score - #43

Merged
xiregroup merged 60 commits into
mainfrom
test/admin-100
Nov 18, 2026
Merged

xiregroup merged 60 commits into
mainfrom
test/admin-100

Conversation

@xiregroup

Copy link
Copy Markdown
Contributor
  • fix(admin): a very wide, low image no longer breaks making its WebP copy
  • refactor(admin): drop the catch around the WebP copy of an upload, nothing in it can throw now
  • test(admin): a non-administrator account gets every button of a writable module
  • refactor(admin): measure page time from the request's start time only, the LARAVEL_START branch never ran under test
  • fix(admin): an SEO template naming a related record gives its name, not its whole row as JSON
  • test(admin): the image captcha with and without GD, the choice made by its constructor
  • test(admin): a module with only the Administrable contract works in the panel
  • test(admin): pin the exact values of the Support services, rewrite their equivalent branches away
  • test(admin): permission sections, route matching and token modes in exact form
  • test(admin): the sign-in throttle key and lock, the recaptcha widget, timeout and keys
  • test(admin): pin which extension points are public and which are protected
  • refactor(admin): let the File model's own deleting hook remove the file from disk, drop the duplicate deletes
  • refactor(admin): Themes::isChoice takes any value instead of guarding against null
  • test(admin): pin Site folder, domain and url handling, drop equivalent casts
  • test(admin): pin Language code rules and rename guard
  • test(admin): pin AdminUser site options and permissions, drop equivalent casts
  • test(admin): pin the API documentation structure for every field edge
  • test(admin): pin ModuleController settings, labels and validation
  • test(admin): pin the shared Inertia props and asset version
  • test(admin): pin what ApiGateway hands the router and restores afterwards, drop equivalent casts
  • test(admin): pin the MCP tool schemas, queries and bodies, drop equivalent casts
  • test(admin): pin what EnterSiteFolder moves, notes and restores, drop equivalent calls
  • test(admin): pin PageSpeedStats types, caching and the speed gadgets' scale; drop equivalent code
  • refactor(admin): PageSpeedStats takes the median as the model's cast gives it
  • test(admin): pin the recent-items gadget for a model without timestamps and with a numeric name
  • test(admin): pin how soft relations are named and keyed, let the model guess the caller
  • test(admin): pin slug uniqueness, regeneration and redirects, drop equivalent code
  • test(admin): pin extension-point visibility inside the test classes that run the methods
  • refactor(admin): ImageCaptcha takes its random numbers from a closure and draws without fills that cannot differ
  • test(admin): pin the image captcha's widget, answers, expiry and the picture it draws
  • refactor(admin): drop guards and array wrappers in the module controller that changed nothing
  • test(admin): pin the module controller condition by condition
  • refactor(admin): WebpCopy drops calls and checks that changed nothing
  • test(admin): pin WebpCopy's limits, rounding, placement and transparency
  • fix(admin): the API list no longer answers 500 to a search or a sort given as a list
  • refactor(admin): the API controller filters searchable columns without a cast and drops route defaults the router never uses
  • test(admin): pin the API's filters, sort columns, token abilities and relations
  • fix(admin): the install and module commands print FAIL for a step that failed
  • refactor(admin): drop the redundant newLine, array_filter, early returns and casts from the install, module and media commands
  • test(admin): pin the install, module and media commands' step output, options, grants and skipped files
  • refactor(admin): make-module reads its stubs through the filesystem instead of a cast file_get_contents
  • test(admin): pin make-module's namespace, table, label escaping and stub override; stop the make-module test leaving its module in the shared config
  • refactor(admin): make-module takes the label option as a string without a cast
  • refactor(admin): the file manager reads its query without casts and drops a clone; the tree-select cycle check walks a chain instead of counting steps
  • test(admin): pin the roles section and the API documentation's notes, list order and per-language types
  • refactor(admin): the site switch lets Rule::in take the ids as they come; test(admin): its guest, missing-id and landing cases
  • refactor(admin): hooks sort on every run and page timings read the clock through now(); test(admin): pin the registry, hook order and the timing numbers
  • fix(admin): saving the SEO tab twice no longer fails when the model has a morph alias
  • refactor(admin): the SEO excerpt looks for a sentence end without anchors or flags and the section description is tested with empty()
  • refactor(admin): module settings read their key and defaults without padding or a cache; test(admin): their empty values, dotted keys and tab order
  • test(admin): pin the router's own permission markers, the API token labels and abilities, and the catalogue's url, downloads and timeout
  • refactor(admin): drop the dead middleware default, the null-safe route lookup, an array wrapper and two duplicated superadmin checks
  • test(admin): pin the one-click switches, required theme and language, the sign-out token, the display field's string and the translation lookup
  • refactor(admin): the file list's page count and the folder check's reserved list lose a cast and a filter that changed nothing
  • test(admin): pin the API's excluded modules, the app routes' middleware list, hook arguments as a list, trimmed site codes and robots.txt, and the root of the slug redirect
  • test(admin): the gateway forgets what the request facade saw during the call, also when the API throws
  • test(admin): compare the role's stored list decoded and put the environment back after the unsaved robots.txt test, so they pass on MySQL and PostgreSQL
  • refactor(admin): the upload takes the stored mime type from the content check instead of asking the file again
  • ci: raise the admin line coverage baseline to 100%

@xiregroup
xiregroup enabled auto-merge November 18, 2026 14:41
@xiregroup
xiregroup disabled auto-merge November 18, 2026 14:41
…, the LARAVEL_START branch never ran under test
…eir equivalent branches away

Casts the framework already guarantees, a redundant is_default fallback, a
sort key that could not be told apart and a cache key built by concatenation
no longer exist; the rest is covered in both directions.
…xact form

A declared permission label that resolves to a lang group no longer breaks
the role form with an array-to-string conversion.
…t failed

Laravel marks a task failed only for its own result value; a false from the step was printed as DONE.
…rns and casts from the install, module and media commands
…tub override; stop the make-module test leaving its module in the shared config
…rops a clone; the tree-select cycle check walks a chain instead of counting steps
…ome; test(admin): its guest, missing-id and landing cases
…ock through now(); test(admin): pin the registry, hook order and the timing numbers
…hors or flags and the section description is tested with empty()
…padding or a cache; test(admin): their empty values, dotted keys and tab order
…abels and abilities, and the catalogue's url, downloads and timeout
…e lookup, an array wrapper and two duplicated superadmin checks
… the sign-out token, the display field's string and the translation lookup
…served list lose a cast and a filter that changed nothing
…re list, hook arguments as a list, trimmed site codes and robots.txt, and the root of the slug redirect
…onment back after the unsaved robots.txt test, so they pass on MySQL and PostgreSQL
…or as they are, it skips an empty one itself
@xiregroup
xiregroup enabled auto-merge November 18, 2026 18:04
@xiregroup
xiregroup added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 3f59c81 Nov 18, 2026
15 checks passed
@xiregroup
xiregroup deleted the test/admin-100 branch November 18, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant