• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / gotrue / 5630382135
65%

Build:
DEFAULT BRANCH: master
Ran 22 Jul 2023 11:27AM UTC
Jobs 1
Files 109
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Jul 2023 11:20AM UTC coverage: 66.0% (+0.009%) from 65.991%
5630382135

push

github

web-flow
refactor: replace fmt.Sprintf with generateTokenHash (#1195)

## What kind of change does this PR introduce?

see title -  relevant command:
```
#!/bin/bash

# Function to apply sed command to files in a directory
replace_in_files() {
  # The sed command with the pattern for replacement
  sed -E -i '' 's/fmt\.Sprintf\("%x", sha256\.Sum224\(\[\]byte\(([^+]+)\+([^)]+)\)\)\)/crypto.GenerateTokenHash(\1, \2)/g' "$1"
}

# Check if a directory is provided as an argument
if [ -z "$1" ]; then
  echo "Please provide the directory path as an argument."
  exit 1
fi

# Check if the directory exists
if [ ! -d "$1" ]; then
  echo "Directory not found: $1"
  exit 1
fi

# Loop through all files in the directory and apply the sed command
for file in "$1"/*; do
  if [ -f "$file" ]; then
    replace_in_files "$file"
  fi
done
```

---------

Co-authored-by: joel@joellee.org <joel@joellee.org>

17 of 17 new or added lines in 5 files covered. (100.0%)

7194 of 10900 relevant lines covered (66.0%)

50.7 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5630382135.1 22 Jul 2023 11:27AM UTC 0
66.0
GitHub Action Run
Source Files on build 5630382135
Detailed source file information is not available for this build.
  • Back to Repo
  • ee78f36e on github
  • Prev Build on master (#5620350741)
  • Next Build on master (#5643450262)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc