Repository Analysis

stretchr/testify

A toolkit with common assertions and mocks that plays nicely with the standard library

3.2 Likely human-written View on GitHub
3.2
Adjusted Score
3.2
Raw Score
100%
Time Factor
2026-05-17
Last Push
25,996
Stars
Go
Language
30,461
Lines of Code
77
Files
97
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 0LOW 97

Pattern Findings

97 matches across 1 category. Click a row to expand file-level details.

Over-Commented Block97 hits · 97 pts
SeverityFileLineSnippet
LOW.ci.ghactions.sh1#!/usr/bin/env bash
LOWdoc.go1// Module testify is a set of packages that provide many tools for testifying that your code will behave as you intend.
LOWmock/doc.go1// Package mock provides a system by which it is possible to mock your objects
LOWmock/doc.go21//
LOWmock/doc.go41//
LOWmock/mock.go201//
LOWmock/mock.go281}
LOWmock/mock.go781 Arguments
LOWmock/mock.go801//
LOWmock/mock.go821}
LOWmock/mock.go901 return result[0].Bool()
LOWrequire/doc.go1// Package require implements the same assertions as the assert package but
LOWrequire/doc.go21//
LOWrequire/require_forward.go101//
LOWrequire/require_forward.go121//
LOWrequire/require_forward.go161
LOWrequire/require_forward.go181// }
LOWrequire/require_forward.go341// The condition is considered "met" if no errors are raised in a tick.
LOWrequire/require_forward.go361
LOWrequire/require_forward.go501//
LOWrequire/require_forward.go1161// NotElementsMatchf asserts that the specified listA(array, slice...) is NOT equal to specified
LOWrequire/require_forward.go1381// Both arguments must be pointer variables. Pointer variable sameness is
LOWrequire/require_forward.go1561// Samef asserts that two pointers reference the same object.
LOWrequire/require_forward.go1581// a.Subset([1, 2, 3], {1: "one", 2: "two"})
LOWrequire/require_forward.go1661 h.Helper()
LOWrequire/require_forward.go1681 h.Helper()
LOWrequire/require.go121//
LOWrequire/require.go141}
LOWrequire/require.go421// function can use the CollectT to call other assertions.
LOWrequire/require.go441 return
LOWrequire/require.go2101 if h, ok := t.(tHelper); ok {
LOWinternal/difflib/difflib.go1// Package difflib is a partial port of Python difflib module.
LOWinternal/difflib/difflib.go61// the longest contiguous matching subsequence that contains no "junk"
LOWinternal/difflib/difflib.go181 _, ok := m.bJunk[s]
LOWinternal/difflib/difflib.go201// starts earliest in a, and of all those maximal matching blocks that
LOWinternal/difflib/difflib.go281
LOWinternal/difflib/difflib.go341 nonAdjacent = append(nonAdjacent, Match{i1, j1, k1})
LOWinternal/difflib/difflib_test.go141 // and:
LOWinternal/spew/config.go21 "fmt"
LOWinternal/spew/config.go41 // set this to a tab with "\t" or perhaps two spaces with " ".
LOWinternal/spew/config.go61 // with a pointer receiver could technically mutate the value, however,
LOWinternal/spew/config.go81 // means it will print the results of invoking the custom error or Stringer
LOWinternal/spew/config.go101}
LOWinternal/spew/config.go121// the number of bytes written and any write error encountered. See
LOWinternal/spew/config.go141}
LOWinternal/spew/config.go161// fmt.Print(c.NewFormatter(a), c.NewFormatter(b))
LOWinternal/spew/config.go181// NewFormatter for formatting details.
LOWinternal/spew/config.go201// Sprintf is a wrapper for fmt.Sprintf that treats each argument as if it were
LOWinternal/spew/dumpnocgo_test.go1// Copyright (c) 2013 Dave Collins <dave@davec.name>
LOWinternal/spew/dumpcgo_test.go1// Copyright (c) 2013-2016 Dave Collins <dave@davec.name>
LOWinternal/spew/bypass.go1// Copyright (c) 2015-2016 Dave Collins <dave@davec.name>
LOWinternal/spew/internalunsafe_test.go1// Copyright (c) 2013-2016 Dave Collins <dave@davec.name>
LOWinternal/spew/common.go81// type the passed reflect.Value represents and outputes the result to Writer w.
LOWinternal/spew/bypasssafe.go1// Copyright (c) 2015-2016 Dave Collins <dave@davec.name>
LOWinternal/spew/dump.go181 // Try to use existing uint8 slices and fall back to converting
LOWinternal/spew/spew.go21 "io"
LOWinternal/spew/spew.go41// This function is shorthand for the following syntax:
LOWinternal/spew/spew.go61// passed with a default Formatter interface returned by NewFormatter. See
LOWinternal/spew/spew.go81}
LOWinternal/spew/spew.go101//
37 more matches not shown…