Source File
counters_supported.go
Belonging Package
internal/fuzz
// Copyright 2021 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.//go:build (darwin || linux || windows || freebsd || openbsd) && (amd64 || arm64 || loong64)package fuzzimport ()// coverage returns a []byte containing unique 8-bit counters for each edge of// the instrumented source code. This coverage data will only be generated if// `-d=libfuzzer` is set at build time. This can be used to understand the code// coverage of a test execution.func coverage() []byte {:= unsafe.Pointer(&_counters):= uintptr(unsafe.Pointer(&_ecounters)) - uintptr()return unsafe.Slice((*byte)(), int())}
![]() |
The pages are generated with Golds v0.7.9-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |