mirror of
https://github.com/larksuite/cli.git
synced 2026-08-03 08:32:46 +08:00
1. Add baseline safe protection for Feishu/Lark API endpoints. 2. Add lark-cli config risk-control on|off|default command for workspace-level safety protection control.
21 lines
474 B
Go
21 lines
474 B
Go
//go:build linux
|
|
|
|
// Copyright (c) 2026 Lark Technologies Pte. Ltd.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package riskcontrol
|
|
|
|
import "testing"
|
|
|
|
func TestReadDeviceModelReturnsLinux(t *testing.T) {
|
|
if got := readDeviceModel(); got != "linux" {
|
|
t.Fatalf("readDeviceModel() = %q, want %q", got, "linux")
|
|
}
|
|
}
|
|
|
|
func TestReadLinuxDeviceModel(t *testing.T) {
|
|
if got := readLinuxDeviceModel(); got != "linux" {
|
|
t.Fatalf("readLinuxDeviceModel() = %q, want %q", got, "linux")
|
|
}
|
|
}
|