
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
github.com/pasataleo/go-testing
This is my testing library. It is a work in progress.
go get github.com/pasataleo/go-testing
package main
import (
"testing"
"github.com/pasataleo/go-testing/tests"
)
func FunctionUnderTest(value string) string {
return value
}
func FunctionWithErrorUnderTest(value string) (string, error) {
return value, nil
}
func TestFunctionUnderTest(t *testing.T) {
// First, we can test the function returns the expected value.
tests.Execute(FunctionUnderTest("test")).Equal(t, "test")
// Second, we can also automatically test the function returns no error, before validating the expected value.
tests.Execute2E(FunctionWithErrorUnderTest("test")).NoError(t).Equal(t, "test")
}
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.