• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

asciimoth / pasta / 29280923334

13 Jul 2026 08:03PM UTC coverage: 78.067% (+0.7%) from 77.33%
29280923334

push

github

asciimoth
feat(std): switch menus of constant nodes from realtime input to apply forms

29 of 41 new or added lines in 6 files covered. (70.73%)

8265 of 10587 relevant lines covered (78.07%)

406.54 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

72.73
/pasta/std/node_float_constant.go
1
package std
2

3
import (
4
        "github.com/asciimoth/configer/configer"
5
        "github.com/asciimoth/pasta/pasta"
6
)
7

8
// NodeTypeFloatConstant is the class name for FloatConstantClass.
9
const NodeTypeFloatConstant = "pasta/FloatConstant"
10

11
// FloatConstantClass creates nodes with one editable float64 value and one
12
// right-directed pasta/float output port.
13
type FloatConstantClass struct{}
14

15
func (FloatConstantClass) ClassName() string        { return NodeTypeFloatConstant }
372✔
16
func (FloatConstantClass) ShortDescription() string { return "Floating-point constant" }
335✔
17
func (FloatConstantClass) LongDescription() string {
×
NEW
18
        return "Outputs an editable float64 value on one pasta/float right-directed port. The value changes when the menu form is applied."
×
19
}
×
20
func (FloatConstantClass) DefaultNodeParams() pasta.NodeClassParams {
393✔
21
        return pasta.NodeClassParams{PrimaryType: TypeFloat, InitialPorts: []pasta.Port{rightPort(TypeFloat)}}
393✔
22
}
393✔
23
func (FloatConstantClass) NewNode(cfg configer.Config, _ ...*pasta.NodeClassState) (pasta.Node, error) {
7✔
24
        return newConstantNode(TypeFloat, readFloat(cfg, 0)), nil
7✔
25
}
7✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc