numbers

package
v2.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MutatorFloatNegate added in v2.6.1

func MutatorFloatNegate(_ *types.Package, _ *types.Info, node ast.Node) []mutator.Mutation

MutatorFloatNegate replaces a non-zero float literal with 0.0. Using 0.0 (rather than prepending "-") avoids producing --x when the literal is already the operand of a unary minus expression.

func MutatorNumbersDecrementer

func MutatorNumbersDecrementer(_ *types.Package, _ *types.Info, node ast.Node) []mutator.Mutation

MutatorNumbersDecrementer implements a mutator to decrement int and float.

func MutatorNumbersIncrementer

func MutatorNumbersIncrementer(_ *types.Package, _ *types.Info, node ast.Node) []mutator.Mutation

MutatorNumbersIncrementer implements a mutator to increment int and float.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL