MCPcopy Create free account
hub / github.com/cli/cli / TestFormatStars

Function TestFormatStars

pkg/cmd/skills/search/search_test.go:523–530  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

521}
522
523func TestFormatStars(t *testing.T) {
524 assert.Equal(t, "0", formatStars(0))
525 assert.Equal(t, "42", formatStars(42))
526 assert.Equal(t, "999", formatStars(999))
527 assert.Equal(t, "1.0k", formatStars(1000))
528 assert.Equal(t, "1.7k", formatStars(1700))
529 assert.Equal(t, "12.5k", formatStars(12500))
530}
531
532func TestQualifiedName(t *testing.T) {
533 tests := []struct {

Callers

nothing calls this directly

Calls 2

formatStarsFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected