project_module_files_test.go 404 字节
package project_module_files

import (
	"github.com/stretchr/testify/assert"
	"testing"
)

func TestMakeTag(t *testing.T) {
	input := []struct {
		InTag     string
		ExceptTag string
	}{
		{"", "v0.1"},
		{"v1", "v2"},
		{"v0.1", "v0.2"},
		{"v0.0.1", "v0.0.2"},
		{"v1.1", "v2"},
		{"v0.1.1", "v0.2"},
		{"v9", "v10"},
	}
	for _, v := range input {
		assert.Equal(t, v.ExceptTag, makeTag(v.InTag))
	}
}