safesearch

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package safesearch contains helpers for Google and YouTube safe search related policies.

Index

Constants

View Source
const (
	ForceYouTubeRestrictDisabled = iota
	ForceYouTubeRestrictModerate
	ForceYouTubeRestrictStrict
)

ForceYouTubeRestrict policy values.

Variables

This section is empty.

Functions

func TestGoogleSafeSearch

func TestGoogleSafeSearch(ctx context.Context, br *browser.Browser, safeSearchExpected bool) error

TestGoogleSafeSearch checks whether safe search is automatically enabled for Google search.

func TestYouTubeRestrictedMode

func TestYouTubeRestrictedMode(ctx context.Context, br ash.ConnSource, expectedStrongContentRestricted, expectedMildContentRestricted bool) error

TestYouTubeRestrictedMode checks whether strong and mild content is restricted as expected, and returns an error if it isn't.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL