aboutsummaryrefslogtreecommitdiffstats
path: root/services/agit/agit_test.go
blob: feaf7dca9baf45b4a57aeca62b466370dbe49d48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2025 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package agit

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestParseAgitPushOptionValue(t *testing.T) {
	assert.Equal(t, "a", parseAgitPushOptionValue("a"))
	assert.Equal(t, "a", parseAgitPushOptionValue("{base64}YQ=="))
	assert.Equal(t, "{base64}invalid value", parseAgitPushOptionValue("{base64}invalid value"))
}