🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

github.com/absfs/fstesting

Package Overview
Dependencies
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/absfs/fstesting

Source
Go Modules
Version
v1.0.0
Version published
Created
Source

fstesting

Go Reference Go Report Card CI License

Comprehensive test suite for absfs filesystem implementations.

func TestMyFS(t *testing.T) {
    suite := &fstesting.Suite{
        FS:       myFS,
        Features: fstesting.DefaultFeatures(),
    }
    suite.Run(t)
}

That's it. One struct, one method call, and you get 30+ tests covering file operations, directories, path handling, error semantics, symlinks, permissions, and timestamps.

Features

  • Baseline Tests - Standard tests that any filesystem should pass
  • Feature Flags - Skip tests for unsupported capabilities (symlinks, permissions, etc.)
  • Fuzz Testing - Property-based tests for edge cases and security
  • Wrapper Testing - Specialized suite for filesystem wrappers (compression, encryption)
  • Quick Check - Fast sanity test for development iterations

Install

go get github.com/absfs/fstesting

Documentation

  • Guide - Detailed usage, configuration, and examples
  • GoDoc - API reference

License

MIT

FAQs

Package last updated on 12 Dec 2025

Did you know?

Socket

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.

Install

Related posts